Communication protocol system and method for a distributed-architecture heating, ventilation and air conditioning network

ABSTRACT

The disclosure provides an HVAC data processing and communication network and a method of manufacturing the same. In an embodiment, the network includes a system device and a subnet controller. The system device is adapted to provide a service and publish a message including a device status vector representing an availability of the system device to provide the service. The subnet controller is adapted to receive the message from the system device including the device status vector via a data bus.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application Ser.No. 61/167,135, filed by Grohman, et al., on Apr. 6, 2009, entitled“Comprehensive HVAC Control System”, and is a continuation-in-partapplication of application Ser. No. 12/258,659, filed by Grohman on Oct.27, 2008, entitled “Apparatus and Method for Controlling anEnvironmental Conditioning Unit,” both of which are commonly assignedwith this application and incorporated herein by reference. Thisapplication is also related to the following U.S. patent applications,which are filed on even date herewith, commonly assigned with thisapplication and incorporated herein by reference:

Serial No. Inventors Title [Attorney Grohman, “Alarm and DiagnosticsSystem and Method Docket No. et al. for a Distributed-ArchitectureHeating, 080161] Ventilation and Air Conditioning Network” [AttorneyWallaert, “Flush Wall Mount Control Unit and In- Docket No. et al. SetMounting Plate for a Heating, 070064] Ventilation and Air ConditioningSystem” [Attorney Thorson, “System and Method of Use for a User DocketNo. et al. Interface Dashboard of a Heating, 070027] Ventilation and AirConditioning Network” [Attorney Grohman “Device Abstraction System andMethod Docket No. for a Distributed-Architecture Heating, 070016]Ventilation and Air Conditioning Network” [Attorney Grohman,“Communication Protocol System and Docket No. et al. Method for aDistributed-Architecture 070079] Heating, Ventilation and AirConditioning Network” [Attorney Hadzidedic “Memory Recovery Scheme andData Docket No. Structure in a Heating, Ventilation and 080151] AirConditioning Network” [Attorney Grohman “System Recovery in a Heating,Docket No. Ventilation and Air Conditioning Network” 080173] [AttorneyGrohman, “System and Method for Zoning a Docket No. et al.Distributed-Architecture Heating, 080131] Ventilation and AirConditioning Network” [Attorney Grohman, “Method of ControllingEquipment in a Docket No. et al. Heating, Ventilation and Air 080163]Conditioning Network” [Attorney Grohman, “Programming and Configurationin a Docket No. et al. Heating, Ventilation and Air 080160] ConditioningNetwork” [Attorney Mirza, “General Control Techniques in a Docket No. etal. Heating, Ventilation and Air 080146] Conditioning Network”

TECHNICAL FIELD

This application is directed, in general, to HVAC networks and, morespecifically, to systems and methods for logical manipulation of systemfeatures.

BACKGROUND

Climate control systems, also referred to as HVAC systems (the two termswill be used herein interchangeably), are employed to regulate thetemperature, humidity and air quality of premises, such as a residence,office, store, warehouse, vehicle, trailer, or commercial orentertainment venue. The most basic climate control systems either moveair (typically by means of an air handler having a fan or blower), heatair (typically by means of a furnace) or cool air (typically by means ofa compressor-driven refrigerant loop). A thermostat is typicallyincluded in a conventional climate control system to provide some levelof automatic temperature and humidity control. In its simplest form, athermostat turns the climate control system on or off as a function of adetected temperature. In a more complex form, the thermostat may takeother factors, such as humidity or time, into consideration. Still,however, the operation of a thermostat remains turning the climatecontrol system on or off in an attempt to maintain the temperature ofthe premises as close as possible to a desired set point temperature.Climate control systems as described above have been in wide use sincethe middle of the twentieth century and have, to date, generallyprovided adequate temperature management.

SUMMARY

One aspect provides an HVAC data processing and communication network.In an embodiment, the network includes a system device and a subnetcontroller. The system device is adapted to provide a service andpublish a message including a device status vector representing anavailability of the system device to provide the service. The subnetcontroller is adapted to receive the message from the system deviceincluding the device status vector via a data bus.

Another aspect is a method of manufacturing a HVAC data processing andcommunication network. In an embodiment, the method includes configuringa system device and a subnet controller. The system device is configuredto provide a service and publish a message including a device statusvector representing an availability of the system device to provide theservice. The subnet controller is configured to receive the message fromthe system device including the device status vector via a data bus.

Yet another aspect is a system device for use in an HVAC data processingand communication network. In an embodiment, the system device includesa physical layer interface, a demand unit and a local controller. Thephysical layer interface is adapted to couple the system device to adata bus. The demand unit is configured to provide an HVAC service. Thelocal controller adapted to publish a message including a device statusvector representing an availability of the demand unit to provide theHVAC service.

BRIEF DESCRIPTION

Reference is now made to the following descriptions taken in conjunctionwith the accompanying drawings, in which:

FIG. 1 is a high-level block diagram of an HVAC system according tovarious embodiments of the disclosure;

FIG. 2 is an embodiment of the disclosure of a network layer associatedwith the HVAC system;

FIG. 3 is a block diagram of a local controller of the disclosure;

FIG. 4 is a block diagram of a system device of the disclosure;

FIG. 5 illustrates an example grouping of devices on an RSBus subnet;

FIG. 6A is an embodiment of an HVAC data processing and communicationnetwork having two subnets;

FIG. 6B illustrates an embodiment of selectively isolating subnets;

FIG. 7 illustrates field definitions of an example message frame of thedisclosure;

FIG. 8 illustrates an error frame of the disclosure;

FIG. 9 illustrates an embodiment of a Class 1 message format of thedisclosure;

FIG. 10A illustrates an embodiment of a Class 3 device status messageformat of the disclosure;

FIG. 10B illustrates an embodiment of a Class 3 alarm message format ofthe disclosure;

FIG. 11 illustrates an embodiment of a Class 5 subnet controller messageformat of the disclosure;

FIG. 12 is a method of the disclosure illustrating startup of a localcontroller;

FIGS. 13A and 13B are methods of the disclosure illustrating startup ofa subnet controller;

FIG. 13C is a state table an example state machine implementing a methodof starting up a subnet controller;

FIG. 14 is a method of the disclosure illustrating an algorithm that maybe employed by a subnet controller to assign Equipment Type to a device;

FIG. 15 is a method of the disclosure of conducting a dialog between asubnet controller and a demand unit according to the disclosure; and

FIGS. 16-24 illustrate various methods of the disclosure.

DETAILED DESCRIPTION

As stated above, conventional climate control systems have been in wideuse since the middle of the twentieth century and have, to date,generally provided adequate temperature management. However, it has beenrealized that more sophisticated control and data acquisition andprocessing techniques may be developed and employed to improve theinstallation, operation and maintenance of climate control systems.

Described herein are various embodiments of an improved climate control,or HVAC, system in which at least multiple components thereofcommunicate with one another via a data bus. The communication allowsidentity, capability, status and operational data to be shared among thecomponents. In some embodiments, the communication also allows commandsto be given. As a result, the climate control system may be moreflexible in terms of the number of different premises in which it may beinstalled, may be easier for an installer to install and configure, maybe easier for a user to operate, may provide superior temperature and/orrelative humidity (RH) control, may be more energy efficient, may beeasier to diagnose, may require fewer, simpler repairs and may have alonger service life.

FIG. 1 is a high-level block diagram of a networked HVAC system,generally designated 100. The HVAC system 100 may be referred to hereinsimply as “system 100” for brevity. In one embodiment, the system 100 isconfigured to provide ventilation and therefore includes one or more airhandlers 110. In an alternative embodiment, the ventilation includes oneor more dampers 115 to control air flow through air ducts (not shown.)Such control may be used in various embodiments in which the system 100is a zoned system. In an alternative embodiment, the system 100 isconfigured to provide heating and therefore includes one or morefurnaces 120, typically associated with the one or more air handlers110. In an alternative embodiment, the system 100 is configured toprovide cooling and therefore includes one or more refrigerantevaporator coils 130, typically associated with the one or more airhandlers 110. Such embodiment of the system 100 also includes one ormore compressors 140 and associated condenser coils 142, which aretypically associated with one or more so-called “outdoor units” 144. Theone or more compressors 140 and associated condenser coils 142 aretypically connected to an associated evaporator coil 130 by arefrigerant line 146. In an alternative embodiment, the system 100 isconfigured to provide ventilation, heating and cooling, in which casethe one or more air handlers 110, furnaces 120 and evaporator coils 130are associated with one or more “indoor units” 148, e.g., basement orattic units that may also include an air handler.

For convenience in the following discussion, a demand unit 155 isrepresentative of the various units exemplified by the air handler 110,furnace 120, and compressor 140, and more generally includes an HVACcomponent that provides a service in response to control by the controlunit 150. The service may be, e.g., heating, cooling, humidification,dehumidification, or air circulation. A demand unit 155 may provide morethan one service, and if so, one service may be a primary service, andanother service may be an ancillary service. For example, for a heatingunit that also circulates air, the primary service may be heating, andthe ancillary service may be air circulation (e.g. by a blower).

The demand unit 155 may have a maximum service capacity associatedtherewith. For example, the furnace 120 may have a maximum heat output(often expressed in terms of British Thermal Units (BTU) or Joules), ora blower may have a maximum airflow capacity (often expressed in termsof cubic feet per minute (CFM) or cubic meters per minute (CMM)). Insome cases, the demand unit 155 may be configured to provide a primaryor ancillary service in staged portions. For example, blower may havetwo or more motor speeds, with a CFM value associated with each motorspeed.

One or more control units 150 control one or more of the one or more airhandlers 110, the one or more furnaces 120 and/or the one or morecompressors 140 to regulate the temperature of the premises, at leastapproximately. In various embodiments to be described, the one or moredisplays 170 provide additional functions such as operational,diagnostic and status message display and an attractive, visualinterface that allows an installer, user or repairman to perform actionswith respect to the system 100 more intuitively. Herein, the term“operator” will be used to refer collectively to any of the installer,the user and the repairman unless clarity is served by greaterspecificity.

One or more separate comfort sensors 160 may be associated with the oneor more control units 150 and may also optionally be associated with oneor more displays 170. The one or more comfort sensors 160 provideenvironmental data, e.g. temperature and/or humidity, to the one or morecontrol units 150. An individual comfort sensor 160 may be physicallylocated within a same enclosure or housing as the control unit 150, in amanner analogous with a conventional HVAC thermostat. In such cases, thecommonly housed comfort sensor 160 may be addressed independently.However, the one or more comfort sensors 160 may be located separatelyand physically remote from the one or more control units 150. Also, anindividual control unit 150 may be physically located within a sameenclosure or housing as a display 170, again analogously with aconventional HVAC thermostat. In such embodiments, the commonly housedcontrol unit 150 and display 170 may each be addressed independently.However, one or more of the displays 170 may be located within thesystem 100 separately from and/or physically remote to the control units150. The one or more displays 170 may include a screen such as a liquidcrystal or OLED display (not shown).

Although not shown in FIG. 1, the HVAC system 100 may include one ormore heat pumps in lieu of or in addition to the one or more furnaces120, and one or more compressors 140. One or more humidifiers ordehumidifiers may be employed to increase or decrease humidity. One ormore dampers may be used to modulate air flow through ducts (not shown).Air cleaners and lights may be used to reduce air pollution. Air qualitysensors may be used to determine overall air quality.

Finally, a data bus 180, which in the illustrated embodiment is a serialbus, couples the one or more air handlers 110, the one or more furnaces120, the one or more evaporator condenser coils 142 and compressors 140,the one or more control units 150, the one or more remote comfortsensors 160 and the one or more displays 170 such that data may becommunicated therebetween or thereamong. As will be understood, the databus 180 may be advantageously employed to convey one or more alarmmessages or one or more diagnostic messages. All or some parts of thedata bus 180 may be implemented as a wired or wireless network.

The data bus 180 in some embodiments is implemented using the Bosch CAN(Controller Area Network) specification, revision 2, and may besynonymously referred to herein as a residential serial bus (RSBus) 180.The data bus 180 provides communication between or among theaforementioned elements of the network 200. It should be understood thatthe use of the term “residential” is nonlimiting; the network 200 may beemployed in any premises whatsoever, fixed or mobile. Other embodimentsof the data bus 180 are also contemplated, including e.g., a wirelessbus, as mentioned previously, and 2-, 3- or 4-wire networks, includingIEEE-1394 (Firewire™, i.LINK™, Lynx™), Ethernet, Universal Serial Bus(e.g., USB 1.x, 2.x, 3.x), or similar standards. In wirelessembodiments, the data bus 180 may be implemented, e.g., usingBluetooth™, Zibgee or a similar wireless standard.

FIG. 2 is a high-level block diagram of one embodiment of an HVAC dataprocessing and communication network 200 that may be employed in theHVAC system 100 of FIG. 1. One or more air handler controllers (AHCs)210 may be associated with the one or more air handlers 110 of FIG. 1.One or more integrated furnace controllers (IFCs) 220 may be associatedwith the one or more furnaces 120. One or more damper controller modules215, also referred to herein as a zone controller module 215, may beassociated with the one or more dampers 115. One or more unitarycontrollers 225 may be associated with one or more evaporator coils 130and one or more condenser coils 142 and compressors 140 of FIG. 1. Thenetwork 200 includes an active subnet controller (aSC) 230 a and aninactive subnet controller (iSC) 230 i. The aSC 230 a may act as anetwork controller of the system 100. The aSC 230 a is responsible forconfiguring and monitoring the system 100 and for implementation ofheating, cooling, humidification, dehumidification, air quality,ventilation or any other functional algorithms therein. Two or more aSCs230 a may also be employed to divide the network 200 into subnetworks,or subnets, simplifying network configuration, communication andcontrol. Each subnet typically contains one indoor unit, one outdoorunit, a number of different accessories including humidifier,dehumidifier, electronic air cleaner, filter, etc., and a number ofcomfort sensors, subnet controllers and user interfaces. The iSC 230 iis a subnet controller that does not actively control the network 200.In some embodiments, the iSC 230 i listens to all messages broadcastover the data bus 180, and updates its internal memory to match that ofthe aSC 230 a. In this manner, the iSC 230 i may backup parametersstored by the aSC 230 a, and may be used as an active subnet controllerif the aSC 230 a malfunctions. Typically there is only one aSC 230 a ina subnet, but there may be multiple iSCs therein, or no iSC at all.Herein, where the distinction between an active or a passive SC is notgermane the subnet controller is referred to generally as an SC 230.

A user interface (UI) 240 provides a means by which an operator maycommunicate with the remainder of the network 200. In an alternativeembodiment, a user interface/gateway (UI/G) 250 provides a means bywhich a remote operator or remote equipment may communicate with theremainder of the network 200. Such a remote operator or equipment isreferred to generally as a remote entity. A comfort sensor interface260, referred to herein interchangeably as a comfort sensor (CS) 260,may provide an interface between the data bus 180 and each of the one ormore comfort sensors 160. The comfort sensor 260 may provide the aSC 230a with current information about environmental conditions inside of theconditioned space, such as temperature, humidity and air quality.

For ease of description, any of the networked components of the HVACsystem 100, e.g., the air handler 110, the damper 115, the furnace 120,the outdoor unit 144, the control unit 150, the comfort sensor 160, thedisplay 170, may be described in the following discussion as having alocal controller 290. The local controller 290 may be configured toprovide a physical interface to the data bus 180 and to provide variousfunctionality related to network communication. The SC 230 may beregarded as a special case of the local controller 290, in which the SC230 has additional functionality enabling it to control operation of thevarious networked components, to manage aspects of communication amongthe networked components, or to arbitrate conflicting requests fornetwork services among these components. While the local controller 290is illustrated as a stand-alone networked entity in FIG. 2, it istypically physically associated with one of the networked componentsillustrated in FIG. 1.

FIG. 3 illustrates a high-level block diagram of the local controller290. The local controller 290 includes a physical layer interface (PLI)310, a non-volatile memory (NVM) 320, a RAM 330, a communication module340 and a functional block 350 that may be specific to the demand unit155, e.g., with which the local controller 290 is associated. The PLI310 provides an interface between a data network, e.g., the data bus180, and the remaining components of the local controller 290. Thecommunication module 340 is configured to broadcast and receive messagesover the data network via the PLI 310. The functional block 350 mayinclude one or more of various components, including without limitationa microprocessor, a state machine, volatile and nonvolatile memory, apower transistor, a monochrome or color display, a touch panel, abutton, a keypad and a backup battery. The local controller 290 may beassociated with a demand unit 155, and may provide control thereof viathe functional block 350, e.g. The NVM 320 provides local persistentstorage of certain data, such as various configuration parameters, asdescribed further below. The RAM 330 may provide local storage of valuesthat do not need to be retained when the local controller 290 isdisconnected from power, such as results from calculations performed bycontrol algorithms. Use of the RAM 330 advantageously reduces use of theNVM cells that may degrade with write cycles.

In some embodiments, the data bus 180 is implemented over a 4-wirecable, in which the individual conductors are assigned as follows:

R—the “hot”—a voltage source, 24 VAC, e.g.

C—the “common”—a return to the voltage source.

i+—RSBus High connection.

i−—RSBus Low connection.

The disclosure recognizes that various innovative system managementsolutions are needed to implement a flexible, distributed-architectureHVAC system, such as the system 100. More specifically, cooperativeoperation of devices in the system 100, such as the air handler 110,outdoor unit 144, or UI 240 is improved by various embodiments presentedherein. More specifically still, embodiments are presented ofcommunications protocols among networked HVAC devices that provide arobust means of communicating within an installation site, andsimplified configuration of the system relative to conventional systems.

FIG. 4 illustrates a device 410 according to the disclosure. Thefollowing description pertains to the HVAC data processing andcommunication network 200 that is made up of a number of system devices410 operating cooperatively to provide HVAC functions. Herein after thesystem device 410 is referred to more briefly as the device 410 withoutany loss of generality. The term “device” applies to any component ofthe system 100 that is configured to communicate with other componentsof the system 100 over a wired or wireless network. Thus, the device 410may be, e.g., the air handler 110 in combination with its AHC 210, orthe furnace 120 in combination with its IFC 220. This discussion mayrefer to a generic device 410 or to a device 410 with a specific recitedfunction as appropriate. An appropriate signaling protocol may be usedto govern communication of one device with another device. While thefunction of various devices 410 in the network 200 may differ, eachdevice 410 shares a common architecture for interfacing with otherdevices, e.g. the local controller 290 appropriately configured for theHVAC component 420 with which the local controller 290 is associated.The microprocessor or state machine in the functional block 350 mayoperate to perform any task for which the device 410 is responsible,including, without limitation, sending and responding to messages viathe data bus 180, controlling a motor or actuator, or performingcalculations. A system status display 430 is described below.

In various embodiments, signaling between devices 410 relies onmessages. Messages are data strings that convey information from onedevice 410 to another device 410. The purpose of various substrings orbits in the messages may vary depending on the context of the message.Generally, specifics regarding message protocols are beyond the scope ofthe present description. However, aspects of messages and messaging aredescribed when needed to provide context for the various embodimentsdescribed herein.

FIG. 5 illustrates an embodiment of the disclosure of a network of thedisclosure generally designated 500. The network 500 includes an aSC510, a user interface 520, a comfort sensor 530 and a furnace 540configured to communicate over a data bus 550. In some embodiments thesedevices form a minimum HVAC network. In addition, the network 500 isillustrated as including an outdoor unit 560, an outdoor sensor 570, anda gateway 580. The furnace 540 and outdoor unit 560 are provided by wayof example only and not limited to any particular demand units. The aSC510 is configured to control the furnace 540 and the outdoor unit 560using, e.g., command messages sent via the data bus 550. The aSC 510receives environmental data, e.g. temperature and/or humidity, from thecomfort sensor 530, the furnace 540, the outdoor sensor 570 and theoutdoor unit 560. The data may be transmitted over the data bus 550 byway of messages formatted for this purpose. The user interface 520 mayinclude a display and input means to communicate information to, andaccept input from, an operator of the network 500. The display and inputmeans may be, e.g., a touch-sensitive display screen, though embodimentsof the disclosure are not limited to any particular method of displayand input.

The aSC 510, comfort sensor 530 and user interface 520 may optionally bephysically located within a control unit 590. The control unit 590provides a convenient terminal to the operator to effect operatorcontrol of the system 100. In this sense, the control unit is similar tothe thermostat used in conventional HVAC systems. However, the controlunit 590 may only include the user interface 520, with the aSC 510 andcomfort sensor 530 remotely located from the control unit 590.

As described previously, the aSC 510 may control HVAC functionality,store configurations, and assign addresses during system autoconfiguration. The user interface 520 provides a communication interfaceto provide information to and receive commands from a user. The comfortsensor 530 may measure one or more environmental attributes that affectuser comfort, e.g., ambient temperature, RH and pressure. The threelogical devices 510, 520, 530 each send and receive messages over thedata bus 550 to other devices attached thereto, and have their ownaddresses on the network 500. In many cases, this design featurefacilitates future system expansion and allows for seamless addition ofmultiple sensors or user interfaces on the same subnet. The aSC 510 maybe upgraded, e.g., via a firmware revision. The aSC 510 may also beconfigured to release control of the network 500 and effectively switchoff should another SC present on the data bus 550 request it.

Configuring the control unit 590 as logical blocks advantageouslyprovides flexibility in the configuration of the network 500. Systemcontrol functions provided by a subnet controller may be placed in anydesired device, in this example the control unit 590. The location ofthese functions therein need not affect other aspects of the network500. This abstraction provides for seamless upgrades to the network 500and ensures a high degree of backward compatibility of the systemdevices 410 present in the network. The approach provides forcentralized control of the system, without sacrificing flexibility orincurring large system upgrade costs.

For example, the use of the logical aSC 510 provides a flexible means ofincluding control units on a same network in a same conditioned space.The system, e.g., the system 100, may be easily expanded. The systemretains backward compatibility, meaning the network 500 may be updatedwith a completely new type of equipment without the need to reconfigurethe system, other than substituting a new control unit 590, e.g.Moreover, the functions provided by the subnet controller may belogically placed in any physical device, not just the control unit 590.Thus, the manufacturer has greater flexibility in selecting devices,e.g., control units or UIs, from various suppliers.

In various embodiments, each individual subnet, e.g., the network 500,is configured to be wired as a star network, with all connections to thelocal controller 290 tied at the furnace 120 or the air handler 110.Thus, each indoor unit, e.g., the furnace 120, may include threeseparate connectors configured to accept a connection to the data bus180. Two connectors may be 4-pin connectors: one 4-pin connector may bededicated for connecting to an outdoor unit, and one may be used toconnect to equipment other than the outdoor unit. The third connectormay be a 2-pin connector configured to connect the subnet of which theindoor unit is a member to other subnets via the i+/i− signals. Asdescribed previously, a 24 VAC transformer associated with the furnace120 or air handler 110 may provide power to the system devices 410within the local subnet via, e.g., the R and C lines. The C line may belocally grounded.

FIG. 6A illustrates a detailed connection diagram of components of anetwork 600A according to one embodiment of the disclosure. The network600A includes a zone 605 and a zone 610. The zones 605, 610 areillustrated without limitation as being configured as subnets 615, 620,respectively. The subnet 615 includes an air conditioning (AC) unit 630,a UI/G 640, an outdoor sensor (OS) 650, a control unit 660, and afurnace 670. The control unit 660 includes an SC 662, a UI 664 and acomfort sensor 666, each of which is independently addressable via adata bus 180 a. The subnet 620 includes a control unit 680, a heat pump690 and a furnace 695. The control unit 680 houses an SC 682, a UI 684and a comfort sensor 686, each of which is independently addressable viaa data bus 180 b. In various embodiments and in the illustratedembodiment each individual subnet, e.g., the subnets 615, 620 are eachconfigured to be wired as a star network, with connections to alldevices therein made at a furnace or air handler associated with thatsubnet. Thus, e.g., each of the devices 630, 640, 650, 660 is connectedto the data bus 180 a at the furnace 670. Similarly, each device 680,690 is connected to the subnet 620 at the furnace 695. Each furnace 670,695, generally representative of the indoor unit 148, may include aconnection block configured to accept a connection to the RSBus 180. Forexample, two terminals of the connection block may be 4-pin connectors.In one embodiment, one 4-pin connector is dedicated to connecting to anoutdoor unit, for example the connection from the furnace 670 to the ACunit 630. Another 4-pin connector is used to connect to equipment otherthan the outdoor unit, e.g., from the furnace 670 to the UI/G 640, theOS 650, and the control unit 660. A third connector may be a 2-pinconnector configured to connect one subnet to another subnet. In thenetwork 600A, e.g., the subnet 615 is connected to the subnet 620 via awire pair 698 that carries the i+/i− signals of the serial bus. Asdescribed previously with respect to the furnace 120, a transformerlocated at the furnace 670 may provide power to the various componentsof the subnet 615, and a transformer located at the furnace 695 mayprovide power to the various components of the subnet 620 via R and Clines. As illustrated, the C line may be locally grounded.

This approach differs from conventional practice, in which sometimes amaster controller has the ability to see or send commands to multiplecontrollers in a single location, e.g., a house. Instead, in embodimentsof which FIG. 6A is representative there is no master controller. Anycontroller (e.g. the SCs 662, 682) may communicate with any device,including other controllers, to make changes, read data, etc. Thus,e.g., a user located on a first floor of a residence zoned by floor maymonitor and control the state of a zone conditioning a second floor ofthe residence without having to travel to the thermostat located on thesecond floor. This provides a significant convenience to the user, whomay be a resident, installer or technician.

FIG. 7 illustrates an example embodiment of a message frame generallydesignated 700. The message frame 700 is configurable to send messagesbetween one local controller 290 and another local controller 290, e.g.,between the UI 240 and the AHC 210. It is to be understood that themessage frame 700 is but one of several possible schemes to communicatebetween local controllers 290. Those of skill in the pertinent arts willrecognize that other equivalent schemes are within the scope of thedisclosure.

Messages may be communicated in a manner compatible with a two-wire busarchitecture. In some cases, a controller-area network is an appropriatecommunication standard. In an example embodiment, messages follow aformat based on the Bosch CAN2.0B (hereinafter “CAN”) standard. Thefollowing aspects of the CAN standard are described by way of example,with no implied limitation on messaging formats otherwise within thescope of the disclosure.

As will be appreciated by those skilled in the pertinent art, the bus inthe CAN standard can have one of two complementary logical values:“dominant” or “recessive”. During simultaneous transmission of dominantand recessive bits, the resulting bus value will be dominant. Forexample, in case of a wired-AND implementation of the bus, the dominantlevel would be represented by a logical 0 and the recessive level by alogical 1. In this context a dominant bit is a bit that “wins” when adominant and a recessive bit are simultaneously asserted on the CAN bus.

As illustrated in FIG. 7, a single message frame may include a Start ofFrame (SOF) bit 710, an Arbitration Field (AF) 720, a Control Field (CF)730, a Data Field (DF) 740, a CRC Field 750, an ACK Field 760 and an Endof Frame (EOF) Field 770.

Each message frame starts with a dominant SOF bit 710, e.g., a logical0. At least some of the local controllers 290 on the network 200 thatare ready to transmit messages synchronize to the SOF bit 710 generatedby the local controller 290 that initializes the transmission. In somecases, the SC 230 performs the initialization. This aspect is discussedin greater detail below. It may be preferable in some cases that all ofthe local controllers 290 on the network 200 synchronize in this manner.

The AF 720 may include a number of bits as identifier (ID) bits. Theillustrated embodiment includes two subfields. A first subfield 722includes, e.g., 11 base ID bits, while a second subfield 724 includes,e.g., 18 extended ID bits. This configuration is an example of a CANextended format. Those skilled in the pertinent art will appreciate thatin other embodiments, a standard format message frame 700 may be used.An SRR bit and an IDE bit separate the first subfield 722 and the secondsubfield 724, and a RTR bit ends the AF 720. In some embodiments the SRRbit and IDE bit are always set to 1 and the RTR bit is always set to 0.

In the message frame 700 the CF 730 is illustrated as including, e.g.,two reserved bits R0 and R1 and a 4-bit Data Length Code (DLC) Field.The reserve bits are always sent as recessive, but the receivers shouldaccept them without any errors regardless if they are recessive ordominant. The DLC Field determines the number of bytes in the DF 740.

The DF 740 may range from 0 to 64 bits. The case of 0 bits, of course,represents the special case that no data is send by the message frame700. In all but this special case, data may be segmented into multiplesof 8 bits (bytes) with maximum of 8 bytes.

The CRC Field 750 contains a checksum calculated on the SOF bit 710, theAF 720, CF 730 and DF 740. The CRC field 750 is illustrated in thisexample embodiment of the CAN standard as being 15 bits wide. Of courseother CRC widths may be used where appropriate for other communicationstandards. The computation of the CRC may be determined as per theCAN2.0 standard, e.g. The CRC field 750 is terminated in a suitablemanner, e.g., by a Delimiter Bit that is always recessive.

The ACK field 760 is two bits long and contains an ACK SLOT (ACK) and anACK delimiter (Del). A transmitting local controller 290, e.g., the SC230, sends two recessive bits. A receiving local controller 290, e.g.,the AHC 210, reports the correct receipt of a message to thetransmitting local controller 290 by asserting a dominant bit during theACK slot. Thus the transmitting local controller 290 can detect thatanother local controller 290 is present on the network to receive themessage. However, the acknowledgement by the receiving local controller290 does not confirm the validity of the message data.

The EOF field 770 is delimited by a flag sequence of seven consecutiverecessive bits.

The CAN standard prohibits the occurrence of more than five consecutivebits of a same value in the SOF bit 710, the AF 720, the CF 730, the DF740, and the CRC field 750. Whenever a transmitting local controller 290detects five consecutive bits of identical value in the bit stream to betransmitted it automatically inserts a complementary bit in the actualtransmitted bit stream.

The CAN standard defines five types of errors that are not mutuallyexclusive:

Bit Error—while sending any bits on the bus, the transmitting localcontroller 290 also monitors the bus. When the state of the bus isdetected to be different from the intended state, a bit error normallyoccurs. Exceptions to this general case include when a recessive bit issent in an AF 720 and a dominant bit is read back. This event signifiesa case of lost arbitration rather than a bit error. The ACK field 760 issent as a recessive bit. When at least one other active local controller290 is present on the bus, in routine operation the local controller 290sets the field to the dominant state. Note that a local controller 290sending a Passive Error Flag and detecting a dominant bit does notinterpret this as a Bit Error. A bit error may indicate in somecircumstances a collision between a message the local controller 290 isattempting to publish to the data bus 180 and a message published to thedata bus 180 by another local controller.

Bit Stuffing Error: this error occurs when a 6th consecutive equal bitlevel is detected in the message field comprising the SOF bit 710, theAF 720, the CF 730, the DF 740 and the CRC field 750.

CRC Error: each receiving local controller 290 calculates the CRC in thesame manner as the transmitting local controller 290. The CRC error isgenerated when the calculated value is different from the value receivedon the RSBus bus 180.

Form Error: this error occurs when a fixed-form bit field (a delimiter,EOF Field or inter-frame space) contains one or more illegal bits. Forthe receiving local controller 290, a dominant bit received in the EOFbit should not be considered an error.

Acknowledgment Error: this error represents the condition that thetransmitting local controller 290 determines that no receiving localcontroller 290 has asserted a dominant bit during the ACK transmissionas described above.

FIG. 8 illustrates an embodiment of an error frame, generally designated800. The RSBus 180 may provide active and passive error frames inconformity with the CAN standard. The error frame 800 includes an errorflag field 810 and an error delimiter 820. The error flag field 810 maybe superimposed. In an active error frame, the superposed flags aredominant, whereas in a passive error frame, the flags are recessive.

The majority of transmission errors may be addressed by retransmittingthe message according to the CAN2.0 standard. More specifically, eacherror type listed above may be handled as follows:

Bit Error: An Error Frame may be generated which starts with the nextbit-time.

Bit Stuffing Error: A node that detects a violation of bit stuffing(e.g., more than 5 bits of the same state) may generate an Error Frame,which causes the sending local controller 290 to resend the message.

CRC Error: CRC may be calculated by both the receiving local controller290 and the sending local controller 290. The sending local controller290 includes the CRC in the message. If the CRC of the receiving localcontroller 290 fails to match the CRC in the message then an error frameis generated. The sending local controller 290 may resend the message inresponse to the error frame.

Form Error: A sending local controller 290 that detects a dominant bitin the Delimiter, End of Frame (EOF) field or Inter-frame Space maygenerate an Active Error Frame. The sending local controller 290 mayresend the message in response to the Active Error Frame.

Acknowledge Error: At least one receiving local controller 290 isexpected to set the acknowledge bit to dominant after the message issent by the transmitting local controller 290. If the acknowledge bit isnot set to dominant, the sending local controller 290 may resend themessage.

Under certain conditions, a local controller 290 may be placed in afault confinement condition to limit the operation thereof. Each localcontroller 290 keeps a count of detected transmit and receive errors.Under some conditions, the local controller 290 may enter one of threeerror states: error active, error passive, and bus off.

A local controller 290 is normally in the error active state. In thisstate the local controller 290 can interrupt a current message inprogress by signaling an error via an active error frame 800. Thetransmitting local controller 290 detects the active error frame 800 andresends the message as described above. Each local controller 290 maykeep a separate count of transmit errors and receive errors. The localcontroller 290 remains in the error active state until an error countexceeds a lower limit value. The limit value 127 may be chosen forconvenience, but any desired number may be used. In some embodiments,the error value is 2^(n)−1, n being an integer.

A local controller 290 enters the error passive state when either thetransmit or receive error count exceeds 127. In the event that one ofthe error counts exceeds 127, the local controller 290 may generate analarm condition alerting the SC 230 to the error state. An alarmcondition may be signified by a DEVICE Communications Problem alarm. Thealarm may be cleared when the local controller 290 enters the erroractive state. In the error passive state, a local controller 290 isconfigured to refrain from interrupting a message in progress. The localcontroller 290 may, however, generate passive error frames 800.

The local controller 290 enters the bus off state when the transmiterror count exceeds an upper limit value. In some embodiments, the upperlimit value is 2^(n+1)−1, where n is the integer selected for the lowerlimit value described above. Thus, in one example, if the lower limitvalue is 127, the upper limit value may be 255.

When the error count exceeds the upper limit value, the affected localcontroller 290 is configured to refrain from sending messages on theRSBus 180. However, the local controller 290 may continue to monitoractivity on the RSBus 180. A local controller 290 which is in bus offstate may enter the error active state after a reset. The device resetcondition may be the expiration of a timer that starts upon the localcontroller 290 entering the bus-off state. In an example embodiment, thetimer expires after 5 minutes. When the local controller 290 is reset byany means, the local controller 290 may reset its transmit error count.

Referring back to FIG. 7, each message frame 700 may be limited in theamount of data that may be sent thereby. When implemented using theCAN2.0 standard, for example, the DF 740 can contain a maximum of eightbytes. In some cases, it may be desirable to send more than eight bytesof data from one local controller 290 to another local controller 290.In such cases, the sending local controller 290 may send a messagelonger than eight bytes by partitioning the message into multiplemessage frames 700. A mechanism referred to as “transport protocol” isprovided by some embodiments to enable sending such messages. In someembodiments, this mechanism is based on the ISO/DIS Standard 15765-2,incorporated herein by reference as if reproduced in its entirety.Herein after, this standard is referred to as the “15765-2 standard” forbrevity. The 15765-2 standard provides for message sequences thatinclude up to 4095 bytes.

The 15765-2 standard uses the addressing format as described below withrespect to the message addressing scheme. Thus transport protocolmessages may follow the same format as other messages broadcast over theRSBus 180. However, transport protocol messages may be distinguishedfrom non-transport protocol messages at the appropriate layer of theprotocol stack based on the ID of the message in question.

Referring to FIG. 7, the DF 740 may include from 0 to eight bytes ofdata, where each byte comprises 8 bits. In some cases, a localcontroller 290 may need to convey more than eight bytes of data toanother local controller 290.

In various embodiments the local controllers 290 are configured toimplement full-duplex transport protocol communication. Suchcommunication is defined, e.g., in Section 6.7.3 of the 15765-2standard. All local controllers 290, except the SC 230 and the UI/G 250,are single session transfer protocol devices. The SC 230 and the UI/G250 support up to 4 concurrent transport protocol sessions. When singlesession devices are engaged in a transport protocol receive session,they are not required to respond to a new transport protocol receivesession request.

In such cases the SC 230 and the UI/G 250 may ignore incoming firstframes. The transmitting local controller 290 may then retry sending thefirst frame a number of times. In some embodiments, the requesting localcontroller 290 retries twice, each time after a one-second timeout. Ifthree consecutive attempts fail, the local controller 290 may issue analarm signifying that the receiving local controller 290 is unresponsiveand may abort the communication attempt. Analogously, the samesingle-session transport protocol device will not request anothertransport protocol send session unless the currently ongoing sendsession is completed. In some embodiments, all single frame transportprotocol messages are sent and received regardless of the state of themulti-frame send or receive sessions.

In some embodiments, a transport protocol block size is eight, and aseparation time may be 5 ms. However, the local controllers 290 may beconfigured to use other values, or to override default values, whennecessary for effective communication.

In some cases, one or more errors may be encountered during a transferprotocol session. Various embodiments provide error handling consistentwith those described by the 15765-2 standard.

Each logical local controller 290 on the RSBus 180 may be identified byan Equipment Type (ET) number. The Equipment Type number serves as anidentifier of a class of logical local controllers 290. In some cases,there may be multiple Equipment Type numbers for a same device class.Table I below lists an example embodiment of Equipment Type numbers forvarious classes of equipment. The values presented in Table I apply tothis example embodiment, and are provided without limitation forillustration purposes. Those skilled in the pertinent art will recognizethat various equivalents may be implemented within the scope of thedisclosure.

TABLE I RSBus Equipment Types Number Equipment Type Number (in binaryform) Equipment Type Range Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit1 Bit 0 Comments Subnet Controllers 0h-Fh 0 0 0 0 0 x x x x ActiveSubnet Controller = 0h Furnace 10h 0 0 0 0 1 0 0 0 0 Air Handler 11h 0 00 0 1 0 0 0 1 Air Conditioner 12h 0 0 0 0 1 0 0 1 0 Heat Pump 13h 0 0 00 1 0 0 1 1 Humidifier 14h 0 0 0 0 1 0 1 0 0 Dehumidifier 15h 0 0 0 0 10 1 0 1 Damper Control Modules 16h-17h 0 0 0 0 1 0 1 1 X ERV 18h 0 0 0 01 1 0 0 0 HRV 19h 0 0 0 0 1 1 0 0 1 Dual Fuel Module 1Ah 0 0 0 0 1 1 0 10 UV Light 1Bh 0 0 0 0 1 1 0 1 1 Media Air Cleaner 1Ch 0 0 0 0 1 1 1 0 0Electronic Air Cleaner 1Dh 0 0 0 0 1 1 1 0 1 IAQ Analyzer 1Eh 0 0 0 0 11 1 1 0 Twinning Module 1Fh 0 0 0 0 1 1 1 1 1 Wireless Comfort 20h-3Fh 00 0 1 x x x x x Wireless Gateways may Sensors be configured at 20h or at30h. Individual sensors may then be added from that address on until amaximum number is reached, e.g., 32. Comfort Sensors 40h-4Fh 0 0 1 0 0 xx x x Wireless Outdoor 50h-5Fh 0 0 1 0 1 x x x x A Wireless Gateway maySensor be configured at 50h. Individual addresses are added to this baseaddress to a maximum number of sensors, e.g., 16. Outdoor Sensors60h-63h 0 0 1 1 0 0 0 x x The number of sensors on each subnet may belimited, e.g., to 4. Not Used 64h-6Fh 0 0 1 1 0 ? ? ? ? Expansion UserInterfaces/ 70h-7Fh 0 0 1 1 1 x x x x User Interfaces are 70h- Gateways7Bh. Gateways are 7Ch-7Fh Not Used 80h-1DFh 1 ? ? ? ? ? ? ? ? ExpansionReserved 1E0h-1FF 1 1 1 1 x x x x x Reserved for NVM Flashing

In various embodiments, a local controller 290 may be configured tonotify the aSC 230 a that it cannot be configured as commanded. Thenotification may take the form of an appropriately configured messagesequence from the local controller 290 to the aSC 230 a.

Table II below illustrates an embodiment of a message addressing schemeof the disclosure. A message ID of this embodiment includes 29 bits,providing a pool of more than 5E8 different messages. This message poolis divided into eight message classes identified by the three mostsignificant bits of the Message ID, bits 26-28. Each message class maybe designated for a different purpose, as indicate. In the illustratedembodiment, classes 0, 2, 4 and 7 are not currently defined.

TABLE II RSBus Message Classes Message CAN extended 29-bit message IDClass 28 27 26 25 24 23 22 21 20 19 Class 0 0 0 0 Class 1 0 0 1 C1MID8C1MID7 C1MID6 C1MID5 C1MID4 C1MID3 C1MID2 UI/G messages Class 2 0 1 0Class 3 0 1 1 AL C3MID12/PR0 C3MID11/PR1 C3MID10/S/C C3MID9 C3MID8C3MID7 Broadcast messages Class 4 1 0 0 Class 5 1 0 1 C5MID12 C5MID11C5MID10 C5MID9 C5MID8 C5MID7 C5MID6 SC messages Class 6 1 1 0 C6MID9C6MID8 C6MID7 C6MID6 C6MID5 C6MID4 C6MID3 Diagnostic messages Class 7 11 1 Message CAN extended 29-bit message ID Class 18 17 16 15 14 13 12 11Class 0 Class 1 C1MID1 C1MID0/TP Destination UI/G or Source messagesEquipment Type Class 2 Class 3 C3MID6 C3MID5 C3MID4 C3MID3 C3MID2 C3MID1C3MID0 AS Broadcast messages Class 4 Class 5 C5MID5 C5MID4 C5MID3 C5MID2C5MID1 C5MID0/TP Destination SC or Source messages Equipment Type Class6 C6MID2 C6MID1 C6MID0 DD9 DD8 DD7 DD6 DD5 Diagnostic messages Class 7Message CAN extended 29-bit message ID Class 10 9 8 7 6 5 4 3 2 1 0Class 0 Class 1 Destination UIID3 UIID2 UIID1 UIID0 SS1 SS0 DS1 DS0 UI/Gor Source messages Equipment Type Class 2 Class 3 Source SS1 SS0Broadcast Equipment messages Type Class 4 Class 5 Destination SS1 SS1DS1 DS0 SC or Source messages Equipment Type Class 6 DD4 DD3 DD2 DD1 DD0UIID3 UIID2 UIID1 UIID0 S/DS1 S/DS0 Diagnostic messages Class 7

In various embodiments, all message IDs on the RSBus 180 follow thedescribed encoding, with one exception. For a transfer protocol flowcontrol frame, the message ID may duplicate the message ID of the frameof the received transfer protocol First Frame.

The various message classes of Table II are now described. Message Class1 includes User Interface and Gateway messages, e.g., those sent by theUI/G 250. These messages serve to communicate with the user duringnormal system operation. They include messages sent from the userinterface or the gateway, as well as some messages explicitly andimplicitly addressed to them.

FIG. 9 illustrates an embodiment of the disclosure of the AF 720 (FIG.7) for Class 1 messages. The control bits in the AF 720 are encoded asfollows:

TABLE III Class 1 Message Arbitration Field Breakdown Sub-FieldDescription Purpose DSI0-DSI1 Destination Subnet Indicate the subnet theIdentifier message is sent to SSI0-SSI1 Source Subnet Indicate thesubnet the Identifier message originated in UIID0-UIID3 User InterfaceID Indicate the address of the UI or G the message is sent to or from,values 0-11 denote User Interfaces, values 12-15 identify Gateways; itis equivalent to the UI/Gs Equipment Type numbers, offset by 70h - e.g.if the UI has the ET = 72h, its UIID = 2 Equipment Type Equipment TypeAs defined in Table I Number C1MID0 = ID17/TP Class 1 Message Leastsignificant bit of ID LSb/Transfer the Class 1 Message ID. Protocol Thisbit indicates if the message is a Transfer Protocol message (TP = 1) ornot (TP = 0) C1MID0-C1MID8 = Class 1 Message Unique 9-bit messageID17-ID25 ID identifier within Class 1

FIG. 10A illustrates an embodiment of the disclosure of the AF 720 (FIG.7) for Class 3, System Broadcast messages. System Broadcast Messages arebroadcasted from one subnet, such as the subnet 400, but all localcontrollers 290 from all subnets can listen and respond to a Class 3message. System Broadcast messages include DEVICE_Status and Alarmsmessages. There are 8,192 (2¹³) System Broadcast messages possible inthe illustrated embodiment. The number of alarms is limited to a subsetof the total possible number of message, e.g. 1024)(2¹⁰). The controlbits in the AF 720 are encoded as follows for this message class:

TABLE IV Class 3 Message Arbitration Field Breakdown: System BroadcastMessages Sub-Field Description Purpose SSI0-SSI1 Source Subnet Indicatethe subnet the Identifier message originated from AL Alarms AL = 0indicates that the message is a system broadcast message. AL = 1indicates an alarm AS All subnets AS = 0 indicates that the message isbroadcast on all subnets. AS = 1 indicates that the destination subnetis identical to the source subnet Equipment Type Equipment Type Asdefined in Table I Number C3MID0-C3MID12 = Class 3 Message Unique 13-bitmessage ID12-ID24 ID identifier within Class 3

FIG. 10B illustrates an embodiment of Class 3 messages for the case thatthe message is an Alarm message. In various embodiments, all Alarmmessages are Class 3 messages. An Alarm message includes additionalinformation about the alarm priority encoded in the PR0-PR1 bits. Thecontrol fields in the AF 720 are encoded as indicated in Table V.

TABLE V Class 3 Message Arbitration Field Breakdown: Alarm MessagesSub-Field Description Purpose SSI0-SSI1 Source Subnet Indicate thesubnet the Identifier message originated from AL Alarms Set to 1 toindicate an alarm PR0-PR1 Alarm Priority Encodes alarm priority, e.g.,minor, moderate and critical SC Set/Clear Set to 0 when the alarm is setand set to 1 when the alarm is being cleared ID12-ID21 Alarm Number Theexact representation of the alarm number AS All Subnets AS = 0 indicatesthat the message is broadcast on all subnets. AS = 1 indicates that thedestination subnet is identical to the source subnet Equipment TypeEquipment Type As defined in Table I Number

FIG. 11 illustrates an embodiment of the disclosure of the AF 720 forClass 5, Subnet Controller messages. Messages in this class may be usedprimarily when a local controller 290 is in a COMMISSION state or aCONFIGURATION mode. In some embodiments, all messages in class 5 areused for communication to or from the Subnet Controller, e.g., the SC230. The format of messages in Class 5 may be constrained to be asdefined in Table II. In FIG. 10B, ID14-ID25 identify a unique messageresulting in total of 4096 (2¹²) messages in this class. Table VIdescribes the bit assignments in the AF 720 for Class 5 messages.

The Equipment Type and the Destination Subnet Identifier denote thespecific device and the specific HVAC system (network subnet) to whichthe message is addressed when sent from the SC 230. If the message issent to the SC 230, the Equipment Type identifies the device sending themessage and the SSI bits identify the subnet of the device. The SC 230being addressed is identified by the Destination Subnet Identifier bits.

During normal operation, a Subnet Identifier in device messages wouldtypically not change unless the particular local controller 290 to whichthe device messages pertain is reconfigured to work on a differentsubnet. The Equipment Type designator assigned to a local controller 290typically does not change, but may be reassigned if the local controller290 is reconfigured. Generally, local controllers 290 other than SubnetControllers respond only to class 5 messages containing their EquipmentType and Subnet ID in the destination field.

TABLE VI Class 5 Message Arbitration Field Breakdown: Subnet ControllerMessages Sub-Field Description Purpose DSI0-DSI1 Destination SubnetIndicate the subnet the Identifier message is sent to SSI0-SSI1 SourceSubnet indicate the subnet the Identifier message originated inEquipment Type Equipment Type As defined in Table I Number C1MID0 =ID13/TP Class 5 Message Least significant bit of ID LSb/Transfer theClass 5 Message ID. Protocol If 1, indicates the message is a TransferProtocol message C5MID0-C5MID12 = Class 5 Message Unique 13-bit messageID13-ID25 ID identifier within Class 5

Diagnostic messages are categorized as Class 6 messages. Class 6messages use Device Designator bits to identify the destination device.Even when the local controller 290 is not configured, or is disabled asdescribed below, the local controller 290 can still send or receiveClass 6 messages. In various embodiments, the local controller 290 cansend and receive Class 6 messages before being configured or whiledisabled. The control bits in the AF 720 are encoded as described inTable II, and further detailed in Table VII.

TABLE VII Class 6 Basic Diagnostic Messages Sub-Field DescriptionPurpose UIID0-UIID3 User Interface ID Indicate the address of the UI/Gthe message is sent to or from. Values 0-11 may denote User Interfaces;values 12-15 may identify Gateways. The User Interface ID is equivalentto the UI/G Equipment Type numbers, offset by 70h. E.g., if theEquipment Type of the UI is 72h, its UIID is 2 DD0-DD9 Device DesignatorIndicate the device's 10 least significant Device Designator bitsS/DSI0-S/DSI1 Source/Destination Indicate the subnet of the SubnetIdentifier UI/G that diagnoses the device C6MID0-C6MID9 = Class 5Message ID reserved for a total of 1024 ID16-ID25 LSb/Transfer possiblemessage IDs in Protocol this class

Some messages sent over the RSBus 180 may expect a response. In somecases, the sender expects the response immediately, meaning as soon asthe hardware and communication protocol allow the transmission of theresponse. Such messages are referred to herein as queries. Queriesgenerally have various timing constraints associated therewith. Oneembodiment of a set of rules is described below that may apply to querymessages for most purposes.

Message Response Time: Generally messages are to be sent without delayby the sending local controller 290. In many cases it is preferable if aresponse to a query is generated in 100 ms or less. This means that uponreceipt of a query, the responding local controller 290 should within100 ms place a response into its CAN transmit buffer. In many cases theresponse will not be sent within 100 ms, as the response timing isgenerally dependent on the traffic conditions on the bus and themessage's priority.

In one exception to this general rule, in the SUBNET_STARTUP state thelocal controller 290 is generally configured to wait 100 ms before itattempts to respond to the Coordinator message. Thus, the response willbe placed in the transmit buffer at a time greater than 100 ms afterreceipt of the query. Other exceptions to the general response timingrule may be made as desired.

Message Resend: A local controller 290 may be configured to resend amessage when a correct reply to the message is not received within theexpected timeout period. The timeout period may be set to any non-zerovalue, e.g., about 1 second. If the message is resent after an initialmessage, and no response is received within the timeout period after thesubsequent message, the local controller 290 may attempt to resend themessage again. If a response to the third attempt is not received withinthe timeout period, the local controller 290 may be configured to ceasefurther resending of the message. Of course, more or fewer attempts maybe made before ceasing to send the message. In some embodiments, thelocal controller 290 may send an alarm message identifying the EquipmentType of the unresponsive device, or act in any other way desired.

Subnet Controller Monitoring: In some embodiments, the aSC 230 a sends aperiodic message to other devices on the RSBus 180 that indicates theaSC 230 a is present and functioning normally. This message is referredto for convenience as a “Heartbeat” message, e.g., aSC_Heartbeat. Eachenabled local controller 290 may listen to the aSC_Heartbeat messageand, when the message is not detected for a specified listening period,may take a specified action. In one embodiment, the local controller 290may issue an alarm when the Heartbeat message is absent for more thanthree times its usual send period, e.g., three messages are missed. Insome embodiments, the local controller 290 also ceases operation andreturns to a default state.

Timing Accuracy: Each local controller 290 typically includes anoscillator to provide a timing reference. Each oscillator is preferredto conform to the accuracy for systems with bus speed of up to 125kbaud, as defined in section 9.1 of the Bosch CAN 2.0B specification.This specification defines resonator accuracy over the entiretemperature range and all environmental conditions, including aging, tobe 1.58%. In some embodiments, a maximum additional ±200 μs tolerancemay be accommodated without notable system degradation. In some cases,the tolerance of the device oscillator may be made more stringent whenreal-time clock functions are provided.

RSBus IDs Header File: The local controllers 290 may be provided bynumerous manufacturing suppliers. To promote uniformity of configurationof the various local controllers 290, a system integrator may provide auniform header file that the suppliers include in firmware controllingthe operation of the local controller 290. It is generally preferablethat the suppliers use the uniform header file without modification infurtherance of the objective of uniformity of the integrated devices. Inan embodiment, the uniform header file contains all RSBus Message IDsfor all messages, including the class of each message. In an embodiment,the file also contains the most current parameter and feature numbers aswell as the system wide alarms. In some cases, the alarms, features,parameters and messages are identified by their string names in all capsformat, with a prefix according to the type. Thus, e.g., alarm names maybe prefixed with a lower-case letter “a”, feature names may be prefixedwith “f”, parameter names with “p” and message names with “mIDx_” whendefining the message ID from a class x and “mc” when defining themessage class.

In a specific example for illustration purposes only, a class 3 messageFOO with a message ID of 0x100 may be defined as follows:

#define mcDEVICE_FOO 3

#define mID3_DEVICE_FOO 0×100

The file may include the following sections:

-   -   Own Alarm IDs—includes Alarm IDs for all Alarms generated by the        device    -   Parameter IDs—includes Parameter IDs for all parameters sent        (owned) and received by the device    -   Feature IDs—includes Feature IDs for all parameters sent (owned)        and received by the device    -   Own User Text IDs—includes all User Text IDs stored by the        device    -   Sent/Received Message IDs—includes message IDs for all messages        sent and received by the device    -   Sent/Received Message Classes—includes message classes for all        messages sent and received by the device    -   Own Alarm Texts—includes installer text in all device supported        languages for all alarms owned by the device    -   Own Feature Texts—includes installer text in all device        supported languages for all features owned by the device    -   Own Parameter Texts—includes installer text in all device        supported languages for all parameters owned by the device    -   Own Feature Send/Receive Matrix—defines whether the particular        Feature is sent and/or received by the device    -   Own Parameter Send/Receive Matrix—defines whether the particular        Parameter is sent and/or received by the device    -   Own Message Send/Receive Matrix—defines what states each message        is sent and/or received by the device

Message Bit Timing: Bit timing of the local controllers 290 may bespecified for uniformity of operation. In an embodiment, the localcontrollers 290 configure the CAN bit timing as follows. The localcontroller 290 timing oscillator produces a periodic signal with aperiod referred to as a time quantum (TQ). In some embodiments, one bithas a period of 25 TQ. Thus for a timing oscillator having a period, orTQ, of about 1 μs, the bit rate is about 40 kBaud. A local controller290 may sample the data on the RSBus at a time related to the TQ. In anembodiment, there the local controller 290 uses a delay time of 8 TQ.The bit is sampled between the 17th and 18th TQ of the bit. If multiplesample points are selected, they may be centered on the transition from17th to 18th TQ.

If the chosen CAN platform does not support the clock divider thatallows 25 TQ per bit timing, it may be preferred to use a setting withthe highest number of TQs per bit, preferably not greater than 25. Delaytime should be adjusted to 32% of the bit duration, and the samplepoints at or centered on 68% of the bit duration.

Any of the local controllers 290 in the network 200 may be reset bycycling the power thereof. The local controller 290 is typicallyconfigured to execute a power-up routine that places the localcontroller 290 in a state ready to be configured via messages andthereby begin normal operation.

However, among the many advantages of the communication protocol of thedisclosure is the ability to implement an efficient method of resettingthe local controllers 290 on the RSBus 180 without cycling power to thedevices. In an embodiment, a software reset may be issued upon a timeoutwhen a local controller 290 enters the bus off state as describedearlier.

In another embodiment, the SC 230 resets a local controller 290 using acombination of two messages. A first reset message commands the localcontroller 290 to prepare for a reset. Optionally, the local controller290 may respond to the first message with a message, e.g.,DEVICE_Waiting_for_Reset, indicating that the local controller 290 iswaiting for a reset message. The SC 230 sends a second reset messageinstructing the local controller 290 to reset. The local controller 290may be configured to only reset in response to the second message if thesecond message is received within a predetermined time period after thefirst message, e.g., one minute. If the second message is not receivedwithin the predetermined time period, the local controller 290 mayresume normal operation and ignore any reset messages received beforeanother message to prepare to reset. In some cases the first and secondmessages may respectively instruct multiple local controllers 290 toprepare for reset, and to reset.

In another embodiment, the local controller 290 is configured to beplaced in a “HARD_DISABLED” and a “SOFT_DISABLED” state. TheHARD_DISABLED state may be initiated by a user via a message from theUI/G 250. In some cases, this aspect provides the ability to enable ordisable a local controller 290 without physically locating the localcontroller 290. This may be particularly advantageous when the localcontroller 290 is a logical device, the location of which may bedifficult to immediately determine, when expedient disabling of thelocal controller 290 is desired.

While in the HARD_DISABLED state, the local controller 290 may beconfigured to monitor the RSBus 180 without transmitting messagesthereover. However, while in this state the local controller 290 may notsend messages to other device, nor may the local controller 290 performany control of an associated demand unit 155. The UI/G 250 may send anappropriately configured message to the local controller 290 instructingthe local controller 290 to enter or exit the HARD_DISABLED state. Thesemessages may be, e.g., class 6 messages. When the local controller 290receives a message altering its HARD_DISABLED state, it may respond byissuing an acknowledgment over the RSBus 180, e.g., via aDEVICE_UI/G_Enable_Acknowledge message. Subnet controllers 230 maymonitor these messages to track the state of enablement of the variouslocal controllers 290 on the RSBus 180. When the local controller 290 ishard enabled, it may reset itself and enter a CRC check mode.

The HARD_DISABLED state is persistent, meaning that the local controller290 remains in the HARD_DISABLED state until the user takes an action tosend an enable message. In various embodiments the state of enablementis logged in the NVM 320 associated with each physical or logical localcontroller 290. Thus, the state of enablement, including the conditionof being disabled, is remembered by the local controller 290 afterreset.

In the SOFT_DISABLED state, the local controller 290 may continue torespond to messages from the SC 230, but may not execute any controlfunctions. The message may be of a reserved type that instructs one ormore local controllers 290 to proceed to a startup state. The localcontroller 290 may respond in such cases by issuing a message alertingthe SC 230 that the local controller 290 is starting up. In variousembodiments the state of enablement in the SOFT_RESET state is stored inthe RAM 320. Thus, the state of disablement in the SOFT_RESET state maybe cleared upon reset of the system 100.

The SOFT_DISABLED state may be cleared when the local controller 290 isreset. The aSC 230 a may implement a soft-disable of a local controller290 when the local controller 290 is “alien” to the subnet, e.g.,unrecognized as a properly initiated local controller 290. The aSC 230 amay also soft-disable a local controller 290 that is determined to bemalfunctioning.

In some embodiments, entry of the local controller 290 to a privilegedoperating mode may be controlled by messages issued by a special-purposecommand interface. One such mode is an OEM programming mode. The OEMprogramming mode may be used to download configuration data to the localcontroller 290. Configuration data may include, e.g., serial and modelnumbers, unit capacity, etc. Such information may be stored innon-volatile memory of the local controller 290, e.g., the NVM 320.

Another privileged operating mode is an OEM functional test mode. Thismode may provide the ability to test the local controller 290 using, inaddition to the messaging protocol, a special data sequence input to atest port that may be separate from the communication capability of thecontroller 290. For example, the command interface may send a demandmessage to and receiving status information from the local controller290 over the RSBus 180, as discussed more fully below.

In some embodiments, a special command sequence from a standard UI/G 250may be used to implement either privileged operation mode. Use of thesemodes may be restricted by password protection if desired.

When the HVAC system 100 is reset or powered up, the local controllers290 on the subnet are configured in various embodiments to establish aninitial operating state of the system 100. One aspect includesconfiguration of one or more SCs 230 of the subnet of the network 200,e.g. As described further below, each SC 230 enters a SUBNET_STARTUPstate upon power-up. During the SUBNET_STARTUP state, the one or moreSCs 230 negotiate for the control of the subnet. This negotiation isbased on a set of features and parameters of each SC 230, and isdesigned to ensure that the best SC 230 available controls the subnet.After this negotiation is completed, the SC 230 that is selected by thenegotiation process becomes active, or in other words, becomes an aSCthat thereafter takes firm control of the subnet. At that point the SC230 places the subnet in a CONFIGURATION mode or a VERIFICATION mode,and proceeds to assign or reassign Equipment Types and Subnet IDs to thelocal controllers 290 on the subnet.

In the CONFIGURATION mode, a SUBNET_STARTUP process serves to configurethe subnet to an operational state. In the VERIFICATION mode, theSUBNET_STARTUP process verifies that a current subnet configurationmatches a subnet configuration set up previously during an initialconfiguration. It is possible to add new devices to the subnet during aConfiguration routine executed only when in the CONFIGURATION mode. TheVERIFICATION mode may be similar to the CONFIGURATION mode, with twodifferences as follows. First, in some embodiments the aSC 230 areassigns the same Equipment Types and Subnet ID numbers to the localcontrollers 290 as were assigned thereto during the last initialconfiguration. Second, the VERIFICATION mode may be configured toexclude the registration of new devices on the network. As describedfurther below, the CONFIGURATION mode or the VERIFICATION mode may beindicated by values of a CF0 and a CF1 flag, defined below, of the oneor more SCs 230 present in the subnet.

FIG. 12 illustrates a state diagram of an embodiment of a SUBNET_STARTUPprocess, generally designated 1200, that is configured to run on a localcontroller 290. In various embodiments the process 1200 is implementedas a finite state machine (FSM). In some embodiments the FSM is onlyimplemented on local controllers 290 that are not a subnet controllerduring the process 1200. In some embodiments, every local controller 290that is not an SC 230 runs a FSM machine consistent with the process1200. The process 1200 may execute in response to messages sent by theSC 230.

The process 1200 begins with a reset state 1210. As mentionedpreviously, the reset state may be reached from a power-up condition,another device state (such as a check of the NVM 320) or a reset commandfrom a controller, e.g. the aSC 230 a. The process 1200 advances to astate 1220, designated DEVICE_PRE_STARTUP. In an illustrativeembodiment, the state 1220 includes a plurality of configuration eventsthat ends with the local controller 290 sending a message over the RSBus180 indicating the local controller 290 is ready to start. This messageis referred to for convenience as DEVICE_Startup. After the state 1220,the process 1200 advances to a state 1230, designatedWAIT_TO_BE_ASSIGNED. The state 1230 includes a plurality ofconfiguration events that ends with the local controller 290 receiving amessage from the aSC 230 a commanding a change to an operational state,referred for convenience as aSC_Change_State. Upon receiving theaSC_Change_State message, the process 1200 advances to a state 1240 andexits.

Note that in all states the local controller 290 can still respond to aClass 6 diagnostic message. Thus, from any state, a message may forcethe process 1200 to the HARD_DISABLED state 1250 or to the reset state1210. The process 1200 illustrates an example in which the process 1200enters the HARD_DISABLED state 1250 from the sate 1220. The process 1200remains in the state 1250 until the local controller 290 receives anappropriate message as described previously. The process 1200 may thenadvance to the state 1210, from which the local controller 290 may beginthe initialization process again.

The process 1200 also illustrates an example in which the process 1200enters a state 1260 SOFT_DISABLED state from the state 1230. The process1200 may remain in the state 1260 until the local controller 290 isreset as previously described. The process 1200 may then advance to thestate 1220.

In some embodiments, the local controller 290 is configured to remain,during the state 1220, in a listen-only mode for a predetermined period,e.g., at least about 5000 ms. In the listen-only mode, the localcontroller 290 monitors messages sent over the RSBus 180, but does notinitiate any messages. After the listen-only period expires, the localcontroller 290 may optionally wait an additional startup delay period.After the optional additional delay, the local controller 290 may send aDEVICE_Startup message over the RSBus 180, and may then monitor theRSBus 180 for any messages that indicate other devices on the RSBus 180failed to receive the startup message correctly.

In some cases, the local controller 290 may initiate its startup messagebefore the end of the 5000 ms listen-only period. In one embodiment, thelocal controller 290 receives an SC_Coordinator message. In this case,the local controller 290 sends a startup message immediately afterpowering up. In this context, immediately means after about 100 ms plusan additional delay derived from the Device Designator. In some suchcases, the message is not received successfully by at least one otherlocal controller 290, resulting in a Bit Error event on the RSBus 180.If the Bit Error is detected, then the device may wait a specifiedperiod, after which it resends the startup message. A specific resenddelay period may be selected for a particular local controller 290. Invarious embodiments the resend delay reduces the probability of messagecollision on the data bus 180. An algorithm that determines this resenddelay time as a function of the Device Designator may compute the resenddelay period as described further below.

In various embodiments the system 100 is configured to allow multipledevices of the same type to start communicating on the network 200.These embodiments allow seamless plug-and-play configuration even whenthe bandwidth of the data bus 180 is limited. The following exampleillustrates principles of these embodiments, and is presented by way ofillustration without limitation.

In one embodiment the Device_Startup message ID is unique to each typeof device. The message data field of the Device_Startup message may beidentical to the data field of the Device_Designator message. Thesemessages may be Class 5 messages, and in such cases they may have RSBusmessage IDs that include an offset number and a five bit order numbershifted left by one, so as not to interfere with the CAN ID bit ID13used to indicate the transport protocol. In these messages the ordernumber is defined for a particular system device 410 as the five leastsignificant bits of the Device Designator (DD) of that system device410. In some embodiments using a Class 3 message that includes the 5-bitorder number, the position of the order number in the message ID is notshifted by one. For the case of the aSC 230 a, the order number can alsobe a number calculated from the number of other subnet controllers,typically one or more instances of the iSC 230 i, detected on thesubnet.

In a nonlimiting example, the Device_Startup message is 0x180, and thelast byte of the DD is 0x45, then the message ID of the Device_Startupmessage is 0x180+(0x45 & 0x1F)=0x180+0x0A=0x18A.

As described further below, a base delay time may be scaled by the valueof the order number. The occurrence of a bit error when a system device410 sends a Device_Startup message indicates that two devices 290simultaneously attempted to publish a message on the data bus 180,referred to herein as a message collision, or more briefly, a collision.When a collision occurs, the devices delay resending the Device_Startupmessage for a unique period derived from the order number.

Thus in various embodiments the presence of the order numberadvantageously reduces the probability of collisions by the factor2^(b), where b is the number of bits of the order number. In theembodiments described above, the collision probability is reduced toabout 3% of the collision probability that would otherwise be present.

After the local controller 290 successfully sends its startup message,the local controller 290 may wait for a Startup Response message fromthe aSC 230 a. The Startup Response may be configured to provide a nodeassignment to the local controller 290. A node assignment message isreferred to for discussion purposes as an aSC_DEVICE_Assignment message.The aSC_DEVICE_Assignment message may be sent by the aSC 230 a from itssubnet. This message may contain information regarding the subnet thatthe local controller 290 may need to operate properly. Informationconveyed by aSC DEVICE Assignment may additionally include the EquipmentType assigned to local controller 290, and other flags. After the localcontroller 290 receives the aSC_DEVICE message, the local controller 290may send an acknowledgement message over the subnet of the network 200it has been assigned to. The message may include, e.g., the EquipmentType of the local controller 290.

If a local controller 290 does not detect a startup response messageaddressed to it within 5 minutes after it is initiated, the localcontroller 290 may repeat its startup message. In some embodiments, thelocal controller 290 repeats the startup message every 5 minutes untilthe local controller 290 successfully receives an Equipment Type andSubnet ID assignment, e.g., via a aSC_DEVICE_Assignment message. Thelocal controller 290 may send an acknowledgement message indicating itis configured and ready to operate normally. In some embodiments, alllocal controllers 290 are required to receive an aSC_DEVICE_Assignmentmessage before sending an acknowledgement. In some cases, exceptions maybe made to this requirement where system design considerations warrant.

In some cases, the local controller 290 was assigned an Equipment Typeand a Subnet ID in a previous system startup. In some embodiments, thelocal controller 290 retains the previously assigned values. In othercases, the local controller 290 was not previously assigned an EquipmentType and a Subnet ID, such as when the local controller 290 is initiallyadded to the system 100. In some embodiments, a local controller 290that has not previously been assigned an Equipment Type and a Subnet IDare assigned a default value. The default value of the Equipment Typemay be a lowest Equipment Type for the specific device. The defaultSubnet ID may be, e.g., 0.

When a subnet starts up, an SC 230 may publish an SC_Coordinator messageto the data bus 180 to coordinate control of the subnet with any otherinstances of the SC 230 on the subnet. When the local controller 290receives the SC_Coordinator message it may respond with a DEVICE_Startupmessage if the local controller 290 is in the SUBNET_STARTUP orSOFT_DISABLED states, or in an OEM Test state described above. Otherwisethe local controller 290 may respond with the DEVICE_Device_Designatormessage.

For example, if the local controller 290 sees the SC_Coordinator messageafter powering up, it may respond with the DEVICE_Startup message. Then,the local controller 290 may be assigned an Equipment Type and Subnet IDby an aSC_DEVICE_Assignment message, and may then receive anaSC_Heartbeat message. If the local controller 290 receives anotherSC_Coordinator message, the local controller 290 may again respond withthe DEVICE_Startup message, because it has not cleared theSUBNET_STARTUP state since the last reset. If the local controller 290is assigned and changes state to, e.g. a COMMISSIONING state and thenreceives another SC_Coordinator message, the local controller 290 mayrespond with a DEVICE_Device_Designator message. If the local controller290 is assigned for the second time, but remains in the SUBNET_STARTUPstate when yet another SC_Coordinator message arrives, it may respondwith a DEVICE_Startup message, as it is no longer necessary to rememberthe previous state.

Restated from the perspective of the aSC 230 a, if the aSC 230 areceives a DEVICE_Device_Designator message, it knows that the localcontroller 290 has not recently been reset. If the aSC 230 a receivesthe DEVICE_Startup message, it knows that the local controller 290 hasnot been assigned and has not changed state since last hardware orsoftware reset of the local controller 290.

FIG. 6B illustrates an embodiment in which a link relay is used toselectively isolate the subnet 615 from the subnet 620. In aconventional communicating HVAC system all devices share a commoncommunicating bus. During system installation and configuration specialcare must be taken to ensure that corresponding equipment from same HVACsystem is matched. Installation becomes more cumbersome and prone toerror as the number of connected systems increases, and as the number ofcomponents in the total system increase. Moreover, if a bus erroroccurs, such as a short circuit between bus wires, the entire networkmay be disabled.

In the embodiment of FIG. 6B, the subnet 615 and the subnet 620 may beselectively isolated from each other using a switch 699 such as a relay.Two systems, one corresponding to each subnet 615, 620 may be installed,configured and tested separately. At a proper time the aSC 230 a in eachsubnet 615, 620, for example the SC 662 and the SC 682, may link itssubnet to another subnet by actuating the switch 699. Advantageously,and in contrast to conventional HVAC systems, if a communication busfailure is detected, the aSC 230 a may disconnect its subnet from thenetwork 200 to localize the problem. The aSC 230 a may put the switch699 in a local mode (e.g., isolating its subnet) as soon as immediatelyupon receiving a SC_Coordinator message from any subnet, or uponreceiving an SC_Startup message from an aSC 230 a on the same subnet.After repair, the aSC 230 a may be instructed via an appropriatelyconfigured message to reconnect to the network 200. Thus, at least someHVAC services may be maintained even if one subnet is renderedinoperable by a failure of the data bus 180.

Turning now to FIGS. 13A and 13B, illustrated is a method generallydesignated 1300A that may run on a subnet controller, e.g., the SC 230,during subnet startup, e.g., during the SUBNET_STARTUP state. FIG. 13A,presenting a summary view of the method 1300A, is described first. FIG.13B, described afterward, presents a more detailed flow chart 1300B ofthe method.

First addressing FIG. 13A, the method 1300A begins with a reset state1301. The state 1301 may result from power-up or an appropriatelyconfigured reset command. A state 1303 provides pre-startup activity,e.g., startup messages to system devices 410 in the network 200. A state1309 provides post-startup activity, e.g., arbitrating the aSC 230 a. Insome cases a system device 410 will be placed in a hard disable state1307, for example when pre-startup activity indicates that the systemdevice 410 is not functioning properly. After the post-startup state1309, an SC 230 that is assigned the role of the aSC 230 a duringarbitration during the state 1309 proceeds to an active-coordinatorstate 1313. The aSC 230 a may perform system administrative tasks in thestate 1313. After the aSC 230 a performs such administrative tasks themethod 1300A proceeds to state 1379 at which point the aSC 230 abroadcasts an aSC_heartbeat message, indicating that the aSC 230 a hasasserted control over its subnet. The method 1300A terminates with astate 1399, from which the aSC 230 a continues with system controlfunctions.

An SC 230 that does not become the aSC 230 a advances in the method1300A to a passive-coordinator state 1315. The SC 230 entering the state1315 is assigned the role of iSC 230 i. The iSC 230 i performs varioustasks in the state 1315 and may then advance to an inactive state 1355.In various embodiments the iSC 230 i continues to receive messages inthe inactive state 1355, and may perform some functions such as storingbackup parameters from other system devices 410, but does not exertcontrol over the subnet. In some cases the iSC 230 i may advance to asoft disable state 1351, e.g. if commanded to do so by a suitableformatted message.

As described, FIG. 13B presents a more detailed flow chart of the method1300A, generally designated in FIG. 13B as a method 1300B. During thepre-startup state 1303, the SC 230 may execute a step 1305, in which itmay send several SC_startup messages according to the variousembodiments described herein. In the post-startup state 1309, the SC 230may perform the previously describe arbitration in a step 1311. If theSC 230 becomes the aSC 230 a, it may in various embodiments be the firstof multiple instances of the SC 230 on the subnet to broadcast anSC_coordinator message. In a step 1317, the SC 230 determines if it isindeed the first to broadcast the SC_coordinator message. If so, the SC230 enters the active-coordinator state 1313, wherein it performsvarious administrative tasks 1357-1375. The SC 230 then advances to theheartbeat-out state, wherein it may broadcast the aSC_heartbeat messagein a step 1377. The SC 230, now referred to as the aSC 230 a, mayperform various configuration steps 1381-1391 before exiting the method1300B with an exit state 1399.

If in the step 1317 the SC 230 determines it is not the first SC 230 tosend an SC_coordinator message, it branches to the passive-coordinatorstate 1315 described previously. The SC 230 may perform variousconfiguration steps 1319-1347. In a step 1349, the SC 230 may determinethat it is disabled. If so, the SC 230 may enter the soft-disabled state1351 and remain therein until a reset. If the SC 230 is not disabled, itmay enter the inactive state 1355, at which point it is referred to asthe iSC 230 i. The method 1300B exits with an exit state 1398.

FIG. 13C presents without limitation an example embodiment of states ofa state machine configured to implement a subnet controller startupprocess. Those skilled in the pertinent art will appreciate that theillustrated embodiment is one of many that may be used, and that suchothers are included in the scope of the disclosure.

In an advantageous embodiment, the controllers SC 230 do not queueinbound or outbound messages. Configuration times discussed below arepresented without limitation for this case. Moreover, if a message isscheduled to be sent out at a specified time, in some embodiments onlyone attempt to send the message is made. The SC 230 does notautomatically attempt to resend the message in such embodiments.However, the SC 230 may attempt to resend the message when a newspecific time is scheduled to send the message after the send failure.

In an embodiment, the Subnet Controller startup sequence begins with theSC 230 issuing a SC_Startup message. The message may be sent at aconsistent period after the SC 230 emerges from a reset state. In anexample embodiment, the period is about 3000 ms plus a supplementaldelay period derived from the Device Designator.

After performing a functional test of local NVM, e.g. the NVM 320, eachSC 230 on the RSBus 180 listens for startup messages from other localcontrollers 290. The SC 230 records all Device Designators andconfigurations, e.g. Equipment Types and Subnet IDs, for all localcontrollers 290 on the network that send their startup messages.

After the supplemental delay period, e.g., about 1000 ms, the first SC230 may attempt to send a second message, e.g., a SC_Coordinatormessage. In an example case in which there is no other traffic on theRSBus 180, the SC_Coordinator message appears on the RSBus 180 afterabout 1000 ms plus the time required to send the SC_Startup message ontothe RSBus 180. Of course such timing is subject to imprecisiondetermined by system-level design consideration. If the first SC 230successfully broadcasts the SC_Startup message, it becomes the activecoordinator, e.g., the aSC 230 a, and proceeds to coordinate the systemconfiguration. If the first SC 230 fails to send the SC_Startup message,or a second SC 230 successfully sends a message first, then the secondSC 230 becomes the aSC 230 a and the first SC 230 enters aPASSIVE_COORDINATOR state and becomes an inactive subnet controller,e.g. the iSC 230 i.

The SC 230 may determine that it is a best subnet coordinator, e.g., haspriority over other available instances of the SC 230 on the subnet 200,by querying such other instances to determine relative capability andfeatures. The SC 230 may additionally take into account factorsunrelated to features and capability. Such determination may include thefollowing factors, presented by way of example without limitation:

1) Subnet Priority Level (SPL) (akin to a user selectable override)—theoperator can chose to use a particular SC 230, even if it is deemed lessadvanced than others on the subnet

2) Device Product Level (DPL) (such as different tiers of capabilitybased on cost)—an SC 230 with greater features or capability may beindicated by a product level number, with a greater number indicating amore capable SC 230

3) Its Protocol Revision Number (PRN)—a recent design revision of the SC230 may be indicated by a higher revision number

4) Its Device Designator or Serial Number (DD/SN)—a greater number ofthe Device Designator or serial number may be generally associated witha more recently produced SC 230, which may be presumed to be morecapable

In some embodiments, the determination is made considering theabove-listed factors in the order indicated. Thus, a first SC 230 with agreater DPL than a second SC 230 may take priority even if the second SC230 have a greater PRN or DD/SN. In some embodiments, the SPL overridesall other factors. In some embodiments if all factors are otherwiseequal, then the SC 230 with a greater Device Designator will takepriority over any SC 230 with a lower Device Designator.

If the SC 230 determines that it is the most qualified SC 230 on thesubnet 200, it proceeds to assume control of the subnet 200 by firstissuing a SC_Ready_To_Take_Over message. After a predetermined period,e.g. about 1000 ms, the aSC 230 a issues the aSC_Heartbeat message.Alternatively, if the aSC 230 a determines it is not the most qualifiedSC 230 on the subnet 200, it will pass a token to the SC 230 that isdetermined to be the most qualified SC 230. The SC 230 passing the tokenbecomes an inactive iSC 230 i, and the SC 230 receiving the tokenbecomes the aSC 230 a.

When the aSC 230 a assumes control of the subnet of the network 200, itdetermines if the subnet of the network 200 is in the CONFIGURATION modeor in the VERIFICATION mode and proceeds to configure the systemaccordingly. If the subnet of the network 200 is in the VERIFICATIONmode, the aSC 230 a issues alarms for all missing and new localcontrollers 290. New local controllers 290 will be excluded from thesubnet of the network 200 and placed in the SOFT_DISABLED state. The aSC230 a may also check the validity of the configuration of the subnet ofthe network 200 and issue appropriate alarms if needed. If the subnet ofthe network 200 is configured correctly, the aSC 230 a concludes theSUBNET_STARTUP process by issuing an aSC_Change_State message.

In some cases there may be more than one SC 230 on a single subnet ofthe network 200 capable of controlling the subnet. In this case, anarbitration algorithm may arbitrate among the eligible SCs 230 todetermine which SC 230 will assume the role of the aSC 230 a. Thealgorithm may consider various factors, including, e.g., for eacheligible SC 230 the CF1 flag setting, defined below, a Subnet PriorityLevel, a Device Product Level, and a hardware revision number. A SubnetPriority Level may be, e.g., an identifier that allows for overwritingthe priority level of an SC 230. In some embodiments the Subnet PriorityLevel of each SC 230 is set to 0 in the factory and can only be changedby a specific sequence of messages sent by the Interface/Gateway 250.The Device Product Level may be, e.g., a designation of a level offeature configuration, such as Signature, Elite or Merit product lines.After the system 100 is configured, all aSCs 230 a run the normaloperation of their respective network subnets.

In various embodiments each SC 230 in the system 100 stores the DeviceDesignators of all other configured SCs 230 in the system 100. Each SC230 may also store its last active, inactive or disabled state.

Recalling that each message includes a message ID, the ID of theDEVICE_Startup message is unique to the message being sent. The messagedata field of the local controller 290 may be identical to the datafield of DEVICE_Device_Designator messages sent by that local controller290. Since these messages may be Class 3 messages, as describedpreviously, they may have RSBus Message IDs that are formed from anoffset number and a 5-bit Order Number. In an example embodiment, theOrder Number of a particular local controller 290 is the 5 leastsignificant bits of the Device Designator of that local controller 290.

For example, if the DEVICE_Startup message is 0x700 and the last byte ofDevice Designator is 0x45 then the message ID of the DEVICE_Startupmessage may be 0x700+(0x45 & 0x1F)=0x700+0x05=0x705.

For Class 5 messages that include the 5-bit Order Number, the positionof the Order Number in the message ID may be shifted left by oneposition so as to prevent interference with the position of theTransport Protocol bit C5MID0/TP. The Order Number of the SC 230 mayalso be a number calculated from the number of other SCs detected on thesubnet. For details, see the device message document.

All startup messages, e.g., DEVICE_Device_Designator and SC_Coordinatormessages, can contain seven Configuration Flags, CF0-CF6. The encodingof these flags may vary depending on the device type. For example, theflags of the SCs 230 may be encoded differently than other localcontrollers 290.

In some embodiments, for the local controllers 290 that are not an SC230 the flags may be encoded as follows:

-   -   CF0: 0 if the local controller 290 has not been configured (e.g.        is a new device)        -   1 if Installer Test Mode tests complete successfully, or            upon receipt of an aSC_Change_State message indicating            transition to Normal Operation    -   CF1: 0 if the control is intended for permanent use        -   1 if it is attached temporarily    -   CF2: 0 if the local controller 290 cannot be flashed over the        RSBus 180        -   1 otherwise    -   CF3: 0 if the local controller 290 is hard        disabled/not-communicating        -   1 if the device is hard enabled/communicating    -   CF4: 0 if the local controller 290 is soft disabled, or was soft        disabled immediately prior to sending this message, when this        message is sent in the Subnet Startup state        -   1 otherwise    -   CF5 0 if the local controller 290 is a factory installed part        -   1 if the local controller 290 is a replacement part    -   CF6: 0 if the local controller 290 has failed the Data CRC check        -   1 otherwise

In some embodiments, for the local controllers 290 that are an SC 230the flags may be encoded as follows:

-   -   CF0: 0 if the SC 230 has not been configured, e.g. is a new        device        -   1 upon successful completion of Installer Test Mode tests    -   CF1 0 if the SC 230 does not recognize any indoor units on the        subnet        -   1 if the SC 230 recognizes at least one indoor unit on the            subnet    -   CF2 0 if the SC 230 cannot be flashed over RSBus 180,        -   1 otherwise    -   CF3 0 if the SC 230 is hard disabled/not-communicating        -   1 if the SC 230 is hard enabled/communicating,    -   CF4 0 if the Subnet Controller is soft disabled, or was soft        disabled immediately prior to sending this message        -   1 otherwise

As described above, the CF0 flag may be used as an indication of thewhether an associated local controller 290 has been configured. The CF0flag may be cleared (0) in all local controllers 290 under the followingcircumstances, e.g.:

-   -   When all device parameters revert to default values, such as via        a specific diagnostic inquiry/command.    -   When the device is restored to factory defaults via a specific        diagnostic inquiry/command.    -   When the device loses its internal NVM settings, as described        below.

At any time and regardless of the CF0 flag setting, if the localcontroller 290 enters the COMMISSIONING state and either the UI/G 250 orthe aSC 230 a attempt to change settings on the local controller 290,the local controller 290 complies with the changes.

In various embodiments, the system 100 enters the CONFIGURATION mode orthe VERIFICATION mode described previously. In an embodiment the system100 may only enter the CONFIGURATION mode when the CF0 flag is reset (0)for all native SCs 230 on the subnet. A non-native SC 230 may enter theCONFIGURATION mode when either its CF0 bit or the CF1 bit is reset. Asused herein a native SC 230 is an SC 230 that was present in the subnetduring the most recent subnet configuration. A non-native SC 230 is anSC 230 that was not present, and was this not detected and is notremembered by other instances of the SC 230 in the subnet. As describedabove, the CF1 flag is set when it recognizes a configured indoor uniton its subnet 200. If these conditions for entering the CONFIGURATIONmode are not present, the system 100 may be placed in the VERIFICATIONmode by a SC 230 on the subnet 200.

If a Bit Error is detected when sending the startup message, e.g.,DEVICE_Startup, the message is resent after a predetermined delay timein various embodiments. The delay time may be computed by an algorithmthat employs the Device Designator. In one embodiment, the DeviceDesignator field is parsed into 4-bit portions, each being a contiguoussubset of bits of the Device Designator. If the Device Designator fieldis 32 bits, e.g., eight successive portions are thereby obtained. Forbrevity the bits of the Device Designator field are represented asDD[0]-DD[31]. In an example, the value of each 4-bit portion isincremented by 1, with the result being multiplied by 4 ms to determinea delay time associated with that portion. In an embodiment, the eightsuccessive portions are associated with delay times as indicated below:

DD[0]-DD[3]: Startup Delay

DD[4]-DD[7]: First Resend Delay

DD[8]-DD[11]: Second Resend Delay

DD[12]-DD[15]: Third Resend Delay

DD[16]-DD[19]: Fourth Resend Delay

DD[20]-DD[23]: Fifth Resend Delay

DD[24]-DD[28]: Sixth Resend Delay

DD[29]-DD[31]: Seventh Resend Delay

If the message is not successfully sent after the eight attempts,subsequent delivery attempts may continue to be made repeating the eightresend delays. In some cases, the message may be resent up to apredetermined maximum, e.g. 255. If the message is not successfully sentwithin the predetermined maximum, the local controller 290 may beconfigured to disengage from the subnet 200, e.g. enter a passive state.The local controller 290 may further be configured to execute themessage send/retry cycle again after a predetermined delay period, e.g.,about 5 minutes.

As described previously with respect to FIG. 5, in some embodiments asingle physical device may include multiple logical devices. In cases inwhich a physical device contains more than one logical device, it may bepreferable to limit all logical devices to be configured to the samesubnet 200. Generally each logical device, e.g., the aSC 470, the userinterface 480 and the comfort sensor 490, sends out its ownDEVICE_Startup messages.

Generally, logical devices are configured separately by messages sent bythe aSC 230 a. In the case of a system device 410 that includes multiplelogical devices, the aSC 230 a assigns the same Subnet Identifier toeach logical device. Taking the thermostat 590 (FIG. 5) as an example,the aSC 230 a may assign the Equipment Type and the Subnet Identifier tothe aSC 510. The aSC 230 a may then also assign the same SubnetIdentifier to the user interface 520 and the comfort sensor 530 viainstances of an assignment message, e.g., aSC_DEVICE_Assignment. Eachlogical device may also respond with its own message acknowledging theassignment message, e.g., a DEVICE_Assignment_Acknowledge message.

As described previously, each local controller 290 may have anassociated NVM, e.g., the NVM 320 (FIG. 3). In some cases, the NVM maybecome corrupted. In various embodiments the contents of the NVM of eachlocal controller 290 are archived by each SC 230 on the subnet of thenetwork 200. Each SC 230 may also archive the last active, inactive anddisabled state of each local controller 290. The contents of a corruptedNVM may then be restored using archival copies of the contents stored onany SC 230. Additionally, in some cases a local controller 290 mayarchive application-specific data on one or more of the SCs 230. Forexample, a local controller 290 may have associated data values thatrepresent special parameters. During the COMMISSIONING state, the localcontroller 290 may archive the parameters on the one or more SCs 230.Then, in various embodiments the SC 230 is configured to restore thecontents of the NVM on a local controller 290 that has determined thecontents thereof are corrupt.

In some embodiments a local controller 290 maintains a local copy of theNVM data. The local controller 290 so configured may recover its NVMdata without intervention from an SC 230. The local controller 290 maybe configured to restore the contents of its NVM without changing itsapparent behavior to other local controllers 290 in the system 100. Thelocal controller 290 may be further configured to verify the integrityof the NVM contents before sending a DEVICE_Startup message.

In an embodiment, when participation by an SC 230 is needed to recoverNVM data, the recovery process may be performed by the device itself inconjunction with the aSC 230 a, Four example failure modes are describedwithout limitation to demonstrate various features of the embodiment.

In a first case, the data stored on the local controller 290 NVM iscorrupt, but a locally archived copy is valid. In this case, the devicemay recover the data from its internal backup in a manner that does notaffect its apparent operation as viewed by the other local controllers290. In an advantageous embodiment, no indication is given to the otherlocal controllers 290, and control of the affected local controller 290is unaffected.

In a second case, the data stored on the local controller 290 NVM iscorrupt, but a locally archived copy is not valid, or no copy is locallystored. However, the aSC 230 a stores correct values for the device. Inthis case, the local controller 290 may send a message, e.g., theDEVICE_Startup message, sent on Subnet 0, using the default EquipmentType for that local controller 290, with the CF6 flag cleared. Itresponds to all SC_Coordinator messages using the same message until anew Equipment Type and Subnet ID are assigned to it. As long as the NVMdata are not recovered the CF6 flag remains reset. Once an aSC 230 atakes over, it proceeds to assign the Equipment Type and Subnet ID tothe local controller 290 as usual, which the local controller 290 storesinternally. The aSC 230 a recognizes the local controller 290 using itsDevice Designator and may assign the same Equipment Type and Subnet IDas previously assigned thereto. The local controller 290 may initiallyrestore NVM data to default values stored in the device flash. The aSC230 a may in parallel enter the COMMISSIONING state to reprogram thelocal controller 290 with the data from its backup. The local controller290 will typically replace any default values it may have placed in theNVM with data provided by the aSC 230 a.

In a third case, the archival data stored on the aSC 230 a is corrupt.In this case, the aSC 230 a may enter the VERIFICATION mode. In thisstate, the aSC 230 a may obtain all data from associated localcontroller 290 as is normally obtained during verification. In someembodiments, the aSC 230 a may instruct the local controller 290 toprovide more data than is normally provided during the verification.

Finally, in a fourth case, the data stored on the local controller 290and the archival data stored on the aSC 230 a is corrupt. In this casethe local controller 290 may restore the NVM to default values. The aSC230 a may obtain the default data as described for the third case.

Turning now to FIG. 14, illustrated is a method, generally denoted 1400,of an algorithm that may be employed by the aSC 230 a to assign theEquipment Type to such a local controller 290. The method 1400 isrepresentative of cases in which a device has an Equipment Type unknownto the aSC 230 a.

In step 1405, the aSC 230 a receives a startup message, e.g.DEVICE_Startup, from a local controller 290 having an unknown EquipmentType. In a branching step 1410, the aSC 230 a determines if anotherunknown local controller 290, that has the same Equipment Type as thecurrent unknown Equipment Type, has previously sent a startup message.If not, the method 1400 advances to a step 1415. In the step 1415, theaSC 230 a assigns to the local controller 290 the Equipment Typeprovided by the local controller 290 in its startup message, and thenends with a step 1420.

If in the step 1410 the aSC 230 a determines in the affirmative, thenthe method 1400 advances to a step 1425. In the step 1425, a variablestartET is set equal to the value of the Equipment Type received fromthe unknown local controller 290 in the startup message. A variablenewET is set equal to the value of startET. A variable Increment is setto +1. The method 1400 advances to a step 1430, in which the value ofIncrement, presently +1, is added to newET.

In a decisional step 1435, if it is determined that there is anotherlocal controller 290 that has already been assigned the Equipment Typevalue currently stored by newET, the method returns to the step 1430,where newET is again incremented. If instead it is determined in thestep 1435 that there is not a local controller 290 with the EquipmentType held by newET, the method 1400 advances to a step 1440, in whichthe aSC 230 a assigns the value of newET to the Equipment Type of theunknown local controller 290.

In a decisional step 1445, the aSC 230 a waits for an acknowledgementfrom the unknown local controller 290, e.g., via a DEVICE_Assignment_Ackmessage. When the acknowledgement is received, the method 1400 advancesto a decisional step 1450, in which it is determined whether theassignment was successful. If the assignment was successful, the method1400 ends at the step 1420.

If in the step 1450 it is determined that the assignment was notsuccessful, the method 1400 advances to a decisional step 1455. If it isdetermined that the Equipment Type was rejected as being too high, themethod 1400 advances to a step 1460, in which newET is set equal tostartET and the value of Increment is set to −1. The method then returnsto the step 1430.

If instead in the step 1455 it is determined that the Equipment Type isnot rejected as too high, the method 1400 advances to a decisional step1465 where it is determined if the Equipment Type is rejected for beingtoo low. If the Equipment Type is not rejected as being too low, thiscondition represents the case, e.g., that there is another devicealready assigned the Equipment Type value. The method 1400 returns tothe 1430 where newET is again incremented. If, on the other hand, it isdetermined in the step 1465 that the Equipment Type was rejected forbeing too high, the method advances to a step 1470. The step 1470establishes that the maximum number of devices is present in the system100. The unknown local controller 290 is set to a SOFT_DISABLED state,and the method 1400 ends with the step 1420.

In one advantageous embodiment, the disclosure provides for a method ofreplacing controls in an HVAC system. In some circumstances, acontroller, e.g., the UI/G 250, may need to be replaced in an installedand configured HVAC system, e.g., the system 100. Manual configurationand calibration of the new controller by the installer would be timeconsuming and expensive to the user of the system 100.

In an embodiment, settings for the SC 230 are provided by an archivedcopy by another SC 230 as described previously. Each subnet controller,e.g., the SC 230, stores the Device Designator and equipment serial andpart numbers for each device in the network, e.g., the network 200. TheDevice Designator and equipment serial and part numbers of an originallocal controller 290 may be assigned and stored on the local controller290 at a manufacturing or assembly facility, e.g. However, the equipmentserial and part numbers may be left blank for a replacement localcontroller 290. The missing equipment serial and part numbers and a setCF5 flag, as describe above, identify the replacement local controller290 as such to the SCs 230 on the network 200. The CF5 flag may beprovided by the replacement local controller 290 via a DEVICE_Startupmessage, e.g. Thus, the aSC 230 a may configure the replacement localcontroller 290 with all pertinent parameter values, as well as theequipment serial and part numbers, all previously archived from thereplaced local controller 290. This approach significantly simplifiesthe replacement of local controllers 290 on the network 200.

In an example embodiment, the aSC 230 a categorizes the replacementlocal controller 290 based on the Device Designator actually storedthereon, rather than based on the archived Device Designator of thereplaced local controller 290. The aSC 230 a determines that thereplacement local controller 290 is a replacement part by the presenceof the set CF5 flag, as described previously, and the lack of a localcontroller 290 on the subnet 200 that corresponds to the replacementlocal controller 290. In the VERIFICATION mode, the replacement localcontroller 290 is placed in a SOFT_DISABLED state. The configuration ofthe replacement local controller 290 with the archived data from thereplaced local controller 290 is performed during the COMMISSIONINGstate. Optionally, an alarm may be generated by the aSC 230 a indicatingthat the replaced local controller 290 is missing.

In an embodiment, during the COMMISSIONING state the aSC 230 a mayverify that the replacement local controller 290 is compatible with thereplaced local controller 290 with the participation of a user orinstaller. For example, the aSC 230 a may prompt the user toautomatically configure the replacement local controller 290 by listinga set of equipment serial and part numbers for each of the replacementlocal controller 290 and the replaced local controller 290. The user maythen be prompted to copy the archived values of all data, including allpertinent parameters and the equipment serial and part numbers onto thereplacement local controller 290. If the user accepts, then theconfiguration data are automatically copied to the replacement localcontroller 290. In another embodiment, the user declines toautomatically overwrite the configuration data of the replacement localcontroller 290, and may enter desired configuration data via a UI/G 250.

When a new local controller 290 is added to the subnet of the network200, this condition may be determined by the aSC 230 a by the presenceof a reset CF5 flag, and a Device Designator that does not match a localcontroller 290 already present on the subnet. In such a case, theequipment serial and part numbers are undisturbed in the COMMISSIONINGstate. However, as before the new local controller 290 may be placed inthe SOFT_DISABLED state in the VERIFICATION mode. The CF5 flag may beprotected against casual change. In some cases, the CF5 flag may only bechanged in a privileged mode, e.g., an OEM test.

In various embodiments of the system 100 normal operation involves thedelivery of DEVICE_Status messages and service demand messages by theaSC 230 a. A demand message may be expressed in terms of a percent of afull capacity of a demand unit 155. A staged demand unit 155 may roundoff a percent of demand communicated to it to a value associated with anearest stage capacity. In some embodiment the aSC 230 a is configuredto know values associated with the stages of a particular staged demandunit 155, and may provide demand messages consistent with these values.In some embodiments a demand message targeting a demand unit 155 thatincludes a blower or similar device contain a blower override value. Thedemand unit 155 may change a blower speed from a default valueassociated with the requested demand level in response to the overridevalue. An override value of 0 may indicate that the default may be used.

In some embodiments, a heating demand is mutually exclusive of a coolingdemand. In cases of simultaneous demands that are not prohibited, ablower speed may default to a highest CFM value of the demandsassociated with the multiple demands. In one example, the configurationof the system 100 is changed from cool plus blower to blower only. Ablower demand message may be sent with a desired blower level, followedby a cooling demand message that causes a compressor to cease operation.

In various embodiments, the aSC 230 a tracks the availability ofcapacity of the demand units 155. If for some reason a service, e.g.,cooling, provided by a demand unit 155 becomes unavailable, the aSC 230a may clear demand messages that request that service.

Each local controller 290 is configured to transmit its own status onthe RSBus 180 using the DEVICE_Status message. In various embodimentsall DEVICE_Status messages share the same first two bytes regardless ofequipment type. These two bytes may contain alarm and service statusinformation. Each bit in the service status byte (service bits) will be‘1’ if the service provided by the demand unit 155 associated with thelocal controller 290 is available, or if the local controller 290sending the message does not know status of the service. The followingdevice status table illustrates the principle:

Device Fan Gas Heat Electric Heat Heat Pump Heat Cooling HumidificationDehumidification Comfort Sensor 1 1 1 1 1 1 1 Furnace 1 1 1 1 1 1 1 HeatPump 1 1 1 1 1 1 1 Dehumidifier 1 1 1 1 1 1 1 Logical AND 1 1 1 1 1 1 1

Each row of the table represents a device status vector maintained bythe corresponding system device. Each column of the table represents apotential service provided by the corresponding system device. Apotential service is a service that may be provided by the system 100when the system 100 is appropriately configured. The system 100 need notactually be configured to provide the service. Also, each system devicetypically only provides a subset of the potential services, and may onlyprovide a single service.

If the service is not available the bits of the service status byte areset to ‘0’. The aSC 230 a receives the service bytes from all thevarious system devices 410 on the subnet 200 and performs a logical AND(any device sending a ‘0’ will result in the service being unavailable).In an embodiment, each alarm associated with a status bit modifies thestatus bit when the alarm is active. Thus, for example, an alarmcondition of the furnace 120 may result in the associated status bit ofthe furnace 120 being set to “0” to indicate the furnace is unavailable.The following device status table illustrates the principle:

Device Fan Gas Heat Electric Heat Heat Pump Heat Cooling HumidificationDehumidification Comfort Sensor 1 1 1 1 1 1 1 Furnace 1 0 1 1 1 1 1 HeatPump 1 1 1 1 1 1 1 Dehumidifier 1 1 1 1 1 1 1 Logical AND 1 0 1 1 1 1 1

Each bit that indicates the unavailability of a service, e.g. “0”, maybe reset to a state indicating the service is available, e.g., “1” whenan alarm condition related the unavailable service clears. The alarm mayclear after the expiration of a predetermined interval, e.g. an “alarmtimeout”, or the alarm may clear if reset by intervention of anoperator, e.g., via the UI 240.

This method advantageously simplifies maintenance of the system 100 byrendering it unnecessary to modify the device status in many cases whena system device is replaced. The method also eases system expansion bythe manufacturer.

Each alarm may be an event-type alarm or a continuous-type alarm. Anevent-type alarm has a timeout associated with it, while a continuousalarm is active as long as the alarm condition persists.

The aSC 230 a may then transmit its DEVICE_Status message including thecombined results of all other local controllers 290 and the service byteof the aSC 230 a. The aSC 230 a may then stop the demand correspondingto the service bit set to ‘0’. The demand may not be restarted until alldevices restore the service bit and the resulting AND is equal to ‘1’.The demands from the same demand group (e.g. heating) can besubstituted. In an embodiment if a heat pump service is not availableand the system requires heating, gas heating or auxiliary electricheating may be used instead. In such a case, the aSC 230 a may issueappropriate gas heating or electric heating demands.

The service bits may be set in all DEVICE_Status messages in allpossible device states. In an embodiment of a routine VERIFICATION modestartup, the service bits are published by a particular local controller290 on the RSbus 180 upon receipt by that local controller 290 of thefirst aSC_Change_State message after reset. Alternatively, the servicebits may be published upon receipt by the publishing local controller290 of an aSC_Assignment message after an asynchronous device reset. Theservice bits may be continuously updated to match the state of theservice as determined by the local controller 290.

FIG. 15 illustrates without limitation a method generally designated1500 that is illustrative of a dialog between the aSC 230 a and a demandunit 155, e.g., an Integrated Furnace Control (IFC) or an Air HandlerControl (AHC). Command messages are represented by underlined text. Themethod 1500 should not be considered a programming model orall-inclusive, but only as example to illustrate various principles ofthe disclosure.

The method 1500 begins with a step 1510. In a step 1520 the aSC 230 adetermines if blower service is needed. If yes, the method advances to astep 1530, in which the aSC 230 a determines if blower service isavailable. If the blower service is available, the method advances to astep 1540. In the step 1540 the aSC 230 a sends a Blower_Demand messageto the IFC or AHC, as appropriate. The method 1500 then advances to astep 1550. In the step 1550, the IFC or AHC transmits a DEVICE_Statusmessage to the aSC 230 a that includes the status of the blower. In astep 1560 the aSC 230 a then sends a SC_UI_Zone_Status message to the UI240 to provide feedback to the user/operator. If in the step 1530 theaSC 230 a determines that blower service is not available, the method1500 advances directly to the step 1550 without issuing a Blower_Demandmessage. The method 1500 ends with a step 1570.

Messages between any UI 240 and the aSC 230 a may be sent as a Class 1message. In various embodiments Class 1 messages have priority overother messages, thus potentially reducing message latency. In most casesa display screen of the UI 240 is not updated with data directly fromuser input, but with data returned from the aSC 230 a in response to themessages generated by the UI 240 in response to the user input.Exceptions to this general rule include cases in which a user selectionresults in altered equipment operation, such as a mode change. In thatcase, the user input may be buffered at the UI 240 until the selectionis finalized, which may be either explicit or by timeout. Once the userselection is finalized, the UI 240 may send a message to the aSC 230 ain response to the selection.

Local controllers 290 may be configured to promptly reply to a demandmessage. In an example embodiment, the local controller 290 acknowledgesreceipt of the demand message within about 100 ms by broadcasting aDEVICE_Status message. The DEVICE_Status message may have theAcknowledge bits set to 01b (ACK) if the message is positivelyacknowledged. Other aspects of the message may be otherwise unchangedfrom the case that no acknowledgment is made. A 0% demand is typicallyacknowledged in the same manner as non-zero demands. For a staged demandunit 155, a demand below its minimum range may be treated as a 0%demand. In general, a demand message above 100% may be treated as a 100%demand.

Turning now to FIG. 16, illustrated is a method of the disclosuregenerally designated 1600 of manufacturing a subnet controller of anHVAC data processing and communication network. The method 1600 beginswith an entry state 1610. In a step 1620, a bus interface device, e.g.,the local controller 290, is configured to receive a message from asubnet controller over the network. The subnet controller may be, e.g.,the aSC 230 a. In a step 1630, the bus interface device is configured tocontrol a demand unit in response to the message. The method 1600 endswith an exit state 1640.

FIG. 17 illustrates another method of the disclosure generallydesignated 1700 of a method of manufacturing a bus interface devicenetworkable in an HVAC data processing and communication network. Themethod 1700 begins with an entry state 1710. In a step 1720, a physicallayer interface, e.g., the PLI 310, is configured to interface to a datanetwork, e.g., the RSBus 180. The physical layer interface may belocated, e.g., on an active subnet controller such as the aSC 230 a. Ina step 1730 a communication module, e.g. the communication module 340,is configured to send and receive messages over the data network via thephysical layer interface. The communication module may be located, e.g.,on a bus interface local controller 290. In a step 1740 a functionalblock, e.g., the functional block 350, is configured to reset inresponse to a message received by the communication module. Thefunctional block may be located on the same bus interface device as thecommunication module. The method 1700 ends with an exit state 1750.

FIG. 18 illustrates another method of the disclosure generallydesignated 1800 of a method of manufacturing a subnet controller of anHVAC data processing and communication network. The method 1800 beginswith an entry state 1810. In a step 1820, a physical layer interface,e.g., the PLI 310, is configured to electrically interface to thenetwork. In a step 1830, a communication module, e.g., the communicationmodule 340, is configured to send and receive messages over the networkvia the physical layer interface. In a step 1840, a functional block,e.g., the functional block 350, is configured to respond to a messagereceived by the communication module. The functional block therebyenters a disabled state in which the functional block does not executecontrol functions, but the communication module may receive messagesover the network. The method 1800 ends with an exit state 1850.

FIG. 19 illustrates a method generally designated 1900 of manufacturinga device networkable in an HVAC data processing and communicationnetwork. The method 1900 begins with an entry state 1910. In a step1920, a physical layer interface is configured to interface to anetwork. The physical layer interface may be, e.g., the PLI 310. In astep 1930, a communication module, e.g. the communication module 340, isconfigured to send and receive messages over the network via thephysical layer interface. In a step 1940, a non-volatile memory isconfigured to store configuration data. The non-volatile memory may be,e.g., the NVM 320. In a step 1950, a functional block, e.g., thefunctional block 350, is configured to respond to a message received bythe communication module thereby enabling a privileged operating modenot normally available to a user of the network. The method 1900 endswith an exit state 1960.

FIG. 20 illustrates a method generally designated 2000 of manufacturinga device networkable in an HVAC data processing and communicationnetwork. The method 2000 begins with an entry state 2010. In a step2020, a physical layer interface is configured to interface to thenetwork. The physical layer interface may be, e.g., the PLI 310. In astep 2030, a communication module, e.g. the communication module 340, isconfigured to send and receive messages over the network via thephysical layer interface. In a step 2040, a non-volatile memory, e.g.,the NVM 320, is configured to store configuration data. In a step 2050,a plurality of logical devices is configured to be addressable via thecommunication module. Each logical device is thereby capable of beingindependently disabled. The method 2000 ends with an exit state 2060.

FIG. 21 illustrates a method of manufacturing a device networkable in anHVAC data processing and communication network. The method 2100 beginswith an entry state 2110. In a step 2120, a physical layer interface isconfigured to interface to a data network. The physical layer interfacemay be, e.g., the PLI 310. In a step 2130, a communication module, e.g.,the communication module 340, is configured to send and receive messagesover the data network via the physical layer interface. In a step 2140,a non-volatile memory, e.g., the NVM 320, is configured to store deviceconfiguration data. The messages include a first class of messages thataddress the device using only a Device Designator of the device, and asecond class of messages that address the device using a message IDformed from a portion of the Device Designator and an offset. The method2100 ends with an exit state 2150.

FIG. 22 illustrates a method of manufacturing an HVAC data processingand communication network. The method 2200 begins with an entry state2210. In a step 2220, a first subnet controller, e.g., a first aSC 230a, is placed in communication with a first bus interface device over adata bus. The bus interface device may be, e.g., the local controller290. In a step 2230, a second subnet controller, e.g., a second aSC 230a or an iSC 230 i, is configured to archive configuration data of thefirst subnet controller and the bus interface device. The method 2200ends with an exit state 2240.

FIG. 23 illustrates a method of manufacturing an HVAC data processingand communication network. The method 2300 begins with an entry state2310. In a step 2320, a demand unit is configured to provide a servicehaving a maximum service capacity. In a step 2330, a subnet controlleris configured to send a message to the demand unit instructing thedemand unit to provide a portion of the maximum. The method 2300 endswith an exit state 2340.

FIG. 24 illustrates a method of manufacturing an HVAC data processingand communication network. The method 2400 begins with an entry state2410. In a step 2420, a first subnet controller and a second subnetcontroller are configured to communicate over the network. In a step2430, the second subnet controller is configured to employ anarbitration algorithm to assert control over the network and the firstsubnet controller. The method 2400 ends with an exit state 2440.

Those skilled in the art to which this application relates willappreciate that other and further additions, deletions, substitutionsand modifications may be made to the described embodiments.

1. An HVAC data processing and communication network, comprising: asystem device adapted to provide a service and publish a messageincluding a device status vector representing an availability of saidsystem device to provide said service; and a subnet controller adaptedto receive said message from said system device including said devicestatus vector via a data bus.
 2. The network as recited in claim 1,wherein said system device is one instance of a plurality of systemdevices, and said subnet controller is further adapted to receive aplurality of device status vectors via status messages from saidplurality of system devices.
 3. The network as recited in claim 2,wherein said subnet controller is adapted to determine an availabilityof said service from said plurality of device status vectors.
 4. Thenetwork as recited in claim 2, wherein said device status vectorincludes a plurality of bits, each bit representing one of a potentialservice provided by said network.
 5. The network as recited in claim 4,wherein said subnet controller is adapted to perform a logical AND ofeach bit of each vector corresponding to a particular service todetermine if that particular service is available.
 6. The network asrecited in claim 1, further comprising a user interface, wherein saidsubnet controller is adapted to generate a status message configured todisplay an alert on said user interface when said subnet controllerdetermines from said device status vector that said service isunavailable.
 7. The network as recited in claim 1, wherein said systemdevice generates an alarm message in the event that said service isunavailable.
 8. A method of manufacturing a HVAC data processing andcommunication network, comprising: configuring a system device toprovide a service and publish a message including a device status vectorrepresenting an availability of said system device to provide saidservice; and configuring a subnet controller to receive said messagefrom said system device including said device status vector via a databus.
 9. The method as recited in claim 8, wherein said system device isone instance of a plurality of system devices, and further comprisingadapting said subnet controller to receive a plurality of device statusvectors via status messages from said plurality of system devices. 10.The method as recited in claim 9, further comprising adapting saidsubnet controller to determine an availability of said service from saidplurality of device status vectors.
 11. The method as recited in claim9, wherein said device status vector includes a plurality of bits, eachbit representing one of a potential service provided by said network.12. The method as recited in claim 11, further comprising configuringsaid subnet controller to perform a logical AND of each bit of eachvector corresponding to a particular service to determine if thatparticular service is available.
 13. The method as recited in claim 8,further comprising configuring a user interface to receive a statusmessage generated by said subnet controller when said subnet controllerdetermines from said device status vector that said service isunavailable, and configuring the user interface to display an alert inresponse to said status message.
 14. The method as recited in claim 8,further comprising configuring said system device to generate an alarmmessage in the event that said service is unavailable.
 15. A systemdevice for use in an HVAC data processing and communication network,comprising: a physical layer interface adapted to couple said systemdevice to a data bus; a demand unit configured to provide an HVACservice; and a local controller adapted to publish a message including adevice status vector representing an availability of said demand unit toprovide said HVAC service.
 16. The system device as recited in claim 15,wherein said device status vector includes a plurality of bits, each bitrepresenting one of a potential service provided by said network. 17.The system device as recited in claim 15, wherein said local controlleris further configured to publish an alarm message to said data bus inthe event that said HVAC service is unavailable.
 18. The system deviceas recited in claim 15, wherein said local controller is configured tomodify a status bit of said device status vector when an alarmcorresponding to said status bit is active.
 19. The system device asrecited in claim 18, wherein said alarm is cleared after the expirationof a predetermined interval.
 20. The system device as recited in claim18, wherein said alarm is cleared by a message published to said databus.